Other Style Information

Vine

This lesson:  Class | DIV | SPAN 
Other lessons:  Style Syntax | Order of Precedence | Style Properties | Other Style Information
Intro. to Styles | Inline Styles | Embedded Style Sheets | Linked Style Sheets

Class

A class is used to create variations for a base tag (like the P tag).  In other words, the same type of element can have a different style.

DIV

If you want to change the look of a large block of text on a page, use the DIV tag. 

SPAN

If you want to change the look for a small quantity of text, use the SPAN tag. 

The lifecycle of the <SPAN CLASS="highlight">cicada</SPAN> is unlike any other in the insect world.

Penn State Behrend Home | Computer Center Home

This page is maintained by Carolyn Dudas
Updated May 21, 2002