Language References
Specifies the class of the object.
Inline |
<element CLASS = sClass...> |
Script |
object.className = sClass ] |
sClass |
String specifying the class or style rule. |
The property is read/write.
The class attribute is typically used to associate a particular style rule in a stylesheet with the element.
<style>
.style1 {... style definition ...}
</STYLE>
...
<ELEMENT class="style1">
This will take the style defined for the class
</ELEMENT>
Using Stylesheets, CSS Reference Table