HTML and CSS Reference
In-Depth Information
<base>
Defines the base URL for other anchors in the
document
Function
Attributes href , target
None in HTML; </base> or <base ... /> in
XHTML
End tag
Contains Nothing
Used in
head_content
The <base> tag should appear only in the document header, not in its
body contents. The browser thereafter uses the specified base URL, not
the current document's URL, to resolve all relative URLs, including those
found in <a> , <img> , <link> , and <form> tags. It also defines the URL that
will be used to resolve queries in searchable documents containing the
<isindex> tag. [ Referencing Documents: The URL, 6.2 ]
6.7.1.1. The href attribute
The HRef attribute must have a valid URL as its value, which the browser
then uses to define the absolute URL against which relative URLs are
based within the document.
Search WWH ::




Custom Search