Selectors in stylesheet rules

Previous Next

A selector in a style sheet rule (the part before the left curly brace) may be:

An HTML element.

A class, in this case a Web Designer class.

An ID, in this case a Web Designer ID.

A contextual selector.

A combination of the options above.

Descriptions and examples of these selectors are given in the related topics.

See also

HTML Elements as Selector

Web Designer Classes as Selector

Web Designer Domain Classes

Web Designer IDs As Selector

Contextual Selectors

The Style Property specifying a CSS inline style