The Base element is to set the document's base URL. Helps browsers in situations where the document may be read out of context.
<BASE
HREF=url
TARGET=window_name
>
Parameter |
Description |
HREF |
Destination URL or anchor point. The text between the anchor elements becomes a hypertext link. If readers select the link, they would move to the document or location specified by the value of the attribute. |
TARGET |
Window or frame at which to target the contents. If no frame or window exists that matches the specified target, a new window is opened for the specified link. If no target is specified, the default is "_self" for a link within the same site or "_top" if the site is external. Special target values are: _blank Specifies to load the link into a new unnamed window. _parent Specifies to load the link into the immediate parent of the document the link is in. _self Specifies to load the link into the same window the link was clicked in. _top Specifies to load the link into the full body of the current window. |
IE(from version 3.0) and Netscape(from version 2.0) support it.
<BASE href="http://www.myhost.com/index.htm">
Base is used to be sure that your document's relative links are associated with the proper document path.
This element may only be used within the HEAD tag.
This is an empty element and does not require a closing tag.