HTML and CSS Reference
In-Depth Information
Name
base
Synopsis
<base> (XHTML: <base/> or <base /> )
Specifies the base pathname for all relative URLs in the document. Place this element within
the head of the document.
Usage
Categories:
Metadata content
Permitted contexts:
In a head element that has no other base elements
Permitted content:
Empty
Start/end tags:
This is an empty (void) element, meaning it has only a start tag and may not have any con-
tents. In HTML, the end tag is forbidden. In XHTML, the element must be closed with a
trailing slash ( <base/> or <base /> ).
Attributes
HTML5 Global Attributes
href = " URI
URI "
Specifies the absolute URI that acts as the base URI for resolving relative URIs.
target = " name
name "
Defines the default target window or iframe for all links in the document.
Search WWH ::




Custom Search