A class is a CSS (cascading style sheets) style definition which can be applied to a particular occurence of an element. It differs from an HTML element definition, which is used to specify the appearance of all occurrences of that element on the associated page(s). Thus for example, if our style sheet contains the following definition:
p {color: color: #009999; font-family: Garamond, "Times New Roman", serif; font-size: 12px }
these attributes will apply to all paragraph elements on the page. However, with class definitions, we might specify two types of paragraph formats, for example:
Using the tag selector, we would now be able to specify that a given paragraph follow either the "first" or "standard" class.
To set the class of an element using the tag selector, right click on the appropriate tag, choose Set Class and then click on one of the classes listed in the sub-menu.
In the Flash movie that follows, the tag selector is used to set the input and textarea elements within a form to a class called "bodytext".
To remove a class from an element, right click on the tag, choose Set Class and then click on None.