HTML and CSS Reference
In-Depth Information
Element-Specific Attributes
href This attribute specifies the base URL to be used throughout the document for relative
URL addresses.
target For documents containing frames, this attribute specifies the default target window
for every link that does not have an explicit target reference. Aside from named frames or
windows, several special values exist. A value of _blank indicates a new window. A value
of _parent indicates the parent frame set containing the source link. A value of _self
indicates the frame containing the source link. A value of _top indicates the full browser
window.
Examples
<!-- standard HTML syntax --->
<base href="http://www.htmlref.com/">
<-- XHTML syntax -->
<base href="http://www.htmlref.com/" />
<!-- with frames -->
<base target="_blank" href="http://www.htmlref.com/">
Compatibility
HTML 2, 3.2, 4, 4.01, 5
XHTML 1.0, 1.1, Basic
Firefox 1+, Internet Explorer 2+,
Netscape 1+, Opera 4+, Safari 1+
Notes
• This element should only occur within the head element.
• HTML 2.0 and 3.2 define only the href attribute.
• Under XHTML variants and HTML5 using XML-syntax, this empty element requires
a trailing slash: <base /> .
• HTML5's current draft specification specifies all common attributes and events, but
frankly many of these make little sense for this element. HTML 4 did not define
them for good reason, so it is likely this may be modified back to a syntax closer to
that of the HTML 4 specification.
<basefont> (Base Font)
This element establishes a default font size for a document. Font size then can be varied
relative to the base font size by using the font element.
Standard Syntax (Transitional Only)
<basefont
color="color name | #RRGGBB"
face="font name(s)"
id="unique alphanumeric identifier"
size="1-7 | +/-int">
Search WWH ::




Custom Search