A.6 Core XHTML Attributes^583
A.6 Core XHTML Attributes
The following attributes may be used to configure most XHTML elements. These
attributes are valid in all elements except base, head, html, meta, param, script,
style, and titleelements.
The classAttribute
The classattribute is used to associate an XHTML element with a class that has been
defined using CSS. The value should be a class name found in either the embedded or
external CSS property rules utilized by the Web page.
Table A.4
tag attributesAttribute Value Usage
alink A valid color; the W3C Configures the color of the active hyperlinks recommends
hexadecimal colors on the Web page. (Deprecated)
background The name of an image file Places a background image on the Web page.
If the image is smaller than the page, it will be repeated, or
tiled, on the browser window. (Deprecated)
bgcolor A valid color; the W3C recom-
mends hexadecimal colors
Configures the background color of the Web page.
(Deprecated)
bgproperties "fixed" When combined with a background image, this property will
fix the background image, simulating the effect of a water-
mark as the Web page visitor scrolls down the page. Only
used by Internet Explorer.
leftmargin Number of pixels Configures the left margin of the Web page. Only used by
Internet Explorer.
link A valid color; the W3C recom-
mends hexadecimal colors
Configures the color of the hyperlinks on the Web page.
(Deprecated)
marginheight Number of pixels Configures the top margin of the Web page. Only used by
Netscape.
marginwidth Number of pixels Configures the left margin of the Web page. Only used by
Netscape.
text A valid color; the W3C recom-
mends hexadecimal colors
Configures the color of the text on the Web page.
(Deprecated)
topmargin Number of pixels Configures the top margin of the Web page. Only used by
Internet Explorer.
vlink A valid color; the W3C recom-
mends hexadecimal colors
Configures the color of the visited hyperlinks on the Web
page. (Deprecated)