The Web Design Group

BASE - Document location

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="">, the relative URL in <IMG SRC="icon/wdglogo.gif"> corresponds with the full URL


HTML 3.2 Reference  ~ Elements by Function  ~ Elements Alphabetically

Home, Forums, Reference, Tools, FAQs, Articles, Design, Links

Copyright © 1996 - 2006. Web Design Group All rights reserved.