This element is also available in our updated HTML 4 reference. Some characteristics may have changed.
Appearance: | <BASE HREF=URL > |
---|---|
Attributes: | HREF=URL |
Contents: | None (Empty). |
May occur in: | HEAD. |
The BASE tag is used to indicate the correct location of the document. Normally, the browser already knows this location. But in cases such as a mirrored site, the URL used to get the document is not the one that should be used when resolving relative URLs. That's when you use the BASE tag. The required HREF attribute must contain a full URL which lists the real location of the document.
For example, in a document which contains
<BASE HREF="http://www.htmlhelp.com/">
,
the relative URL in <IMG SRC="icon/wdglogo.gif">
corresponds with the full URL http://www.htmlhelp.com/icon/wdglogo.gif.
HTML 3.2 Reference ~ Elements by Function ~ Elements Alphabetically
Home, Forums, Reference, Tools, FAQs, Articles, Design, Links
Copyright © 1996 - 2006. All rights reserved.