BASE - Document location

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.

Notes:


Web Design Group
Reference index ~ Wilbur index ~ Tag overview ~ Feedback

Copyright © 1997 Arnoud "Galactus" Engelfriet.