1. Home
  2. Computing & Technology
  3. Web Design / HTML

XHTML Attributes - class

By Jennifer Kyrnin, About.com

class:

Assigns a class name or names to the element. Classes are typically used with Cascading Style Sheets

Used with Elements:

All elements, except:

Content:

Space separated list of classes

Default:

Not required

Deprecated in XHTML 1.0:

No

DTD:

XHTML 1.0 Standard

Explore Web Design / HTML

More from About.com

  1. Home
  2. Rel nofollow - What does this mean?
  3. HTML Link Tag
  4. HTML and XHTML
  5. XHTML
  6. HTML Tags
  7. XHTML Attributes - class

©2008 About.com, a part of The New York Times Company.

All rights reserved.