Examples of Several Style elements

A general selector/property/value rule sets the background color for this page as silver.

Nested Selectors

The following listing gives a typical outline form for successive levels of indenting.

  1. First main item
    1. First level, nested item
    2. Second level, second nested item
      1. Third level, nested item
        1. Fourth level, nested item
        2. Fouth level, second nested item
      2. Third level, second nested item
  2. Second main item


A class may be defined for a specific selector.

A class may be used for any type of selector.

A class may be used for a region, using a div tag.


An id may be defined for any element, but only used once

As with classes, ids may be used within a div tag to apply to an entire region.

created 25 April 2008
last revised 17 September 2008
Valid HTML 4.01! Valid CSS!