Dynamic HTML Example : Classed Styles

Cascading Style Sheets provide the ability to create a class selector for STYLE. When a style is classed it can be reused throughout the HTML document. The DIV, along with its unique ID, using the classed style, will provide the ability to access and manipulate that particular DIV.

Two steps are required the create a DIV that uses classed styles:
1. Within STYLE, define a class name, preceeded by a period, and assign it attributes.
2. Use DIV with its CLASS equal to the class name.

The following are three DIVs with the same CLASS:

This is myDiv1

This is myDiv2

This is myDiv3