HTML and CSS Reference
In-Depth Information
Attributes Defined by Internet Explorer
id="unique alphanumeric identifier" (4)
Events Defined by Internet Explorer
onlayoutcomplete, onmouseenter, onmouseleave, onreadystatechange
Element-Specific Attributes
color
This attribute sets the text color using either a named color or a color specified in the
hexadecimal
#RRGGBB
format.
face
This attribute contains a list of one or more font names. The document text in the
default style is rendered in the first font face that the client's browser supports. If no font
listed is installed on the local system, the browser typically defaults to the proportional or
fixed-width font for that system.
size
This attribute specifies the font size as either a numeric or relative value. Numeric
values range from
1
to
7
, with
1
being the smallest and
3
the default. Relative values start
with
+
or
-
, followed by a digit, and modify the current size appropriately. Resulting values
above 7 become 7 and below 1 become 1.
Example
<!-- Standard HTML syntax -->
<basefont color="#ff0000" face="Helvetica" size="+2">
<!-- XHTML style syntax -->
<basefont color="#ff0000" face="Helvetica" size="+2" />
Compatibility
HTML 2, 3.2, 4, 4.01 (transitional)
XHTML 1.0 (transitional)
Firefox 1+, Internet Explorer 2+,
Netscape 1+, Opera 4+, Safari 1+
Notes
• HTML 3.2 supports the
basefont
element but only with the
size
attribute.
• The (X)HTML strict and HTML5 specifications do not support this element.
• This element can be imitated with a CSS rule on the
body
element.
• Transitional XHTML 1.0 requires a trailing slash for this empty element:
<basefont />
.
<bdo> (Bidirectional Override)
This element is used to override the current directionality of text.