Web Programming : Core Attributes : The Class Attribute

9:42:00 AM |


class


The class Attribute
The class attribute is used to associate an element with a style sheet, and specifies the class of element.
(You will learn more about this in our later articles, which introduces CSS.) The syntax of
the class attribute is as follows:
class="className"
The value of the attribute may also be a space-separated list of class names. For example:
class="className1 className2 className3"

0 comments: