aspxtreme

CLASS Attribute | className Property

HTML Elements/DHTML Objects   Element Attributes


Specifies the class of the object.

Syntax


HTML <ELEMENT CLASS = sClass ... >
Script object.className [ = sClass ]

Possible Values


sClass String specifying the class or style rule.

The property is read/write.

Remarks

The class attribute is typically used to associate a particular style rule in a stylesheet with the element.

Example

<style>
  .style1 {... style definition ...}
</STYLE>
...
<ELEMENT class="style1">
  This will take the style defined for the class
</ELEMENT>
See Also

Using Stylesheets, CSS Reference Table



Books and more ...

Contents
HTML Elements / DOM Objects
HTML Element Attributes
CSS Attributes
DOM Object Properties
DOM-compliant Events Reference
DOM Methods Reference
DOM Collections Reference
 


Suggested Reading



Previous page Back to top Next page

Check out related books at Amazon

© 2000-2008 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support aspxtreme