CLASS="..." (HTML Tag Attribute)

A means of associating a tag with a stylesheet class. Represented by the className property of an Element object.


DOM level - 1
JavaScript - 1.5
JScript - 3.0
Internet Explorer - 4.0
Netscape - 6.0

In MSIE, virtually any object can be associated with a style object by means of the CLASS attribute. This is reflected into the className property of the object. It is especially applicable to DOM-related objects, which are considered to be sub-classed from the Element object. Netscape 6.0 brings that browser into line with these capabilities.

See also:DOM, Element object, Element.className,, STYLE object (1), style object (2)