Pseudo-classes

Support Key: CSS1 | CSS2 | IE3 | N4 | O3.5
Pseudo-Classes
first-child
link
visited
active
hover
focus
lang
= Index DOT Css by Brian Wilson [bloo@blooberry.com] =
Syntax
Ext/Doc: [element]:[pseudo-class] { property: value }
CSS Pseudo-Classes
Link [CSS1 | CSS2 | IE3 | N4 | O3.5]
Applies to an unvisited hyperlink
Visited [CSS1 | CSS2 | IE3 | N4 | O3.5]
Applies to a visited hyperlink
First-child [CSS2]
Applies to the first child/descendent of an element
Active [CSS1 | CSS2 | IE4]
The state during pointer activation (eg: press and release of a mouse) within the rendering region of an element.
Hover [CSS2 | IE4]
The state during pointer movement within the rendering region of an element.
Focus [CSS2]
The state during which an element accepts keyboard input.
Lang [CSS2]
The state applying when the element/selector content contains the specified language.
First, Left, Right [CSS2]
These only apply to the Page Box using the @Page At-Rule.
What Are They?
Pseudo-classes usually define dynamic states of an element that are entered and exited over time, or through user intervention. The CSS specs do not always define which elements may be in a pseudo-class state, or the method in which the state is entered or exited. CSS2 DOES state that a browser is not required to re-render a document because of pseudo-class state transitions however.

Some Pseudo-classes describe mutually exclusive states of an element, while others describe states or conditions that can exist in parallel to each other. Pseudo-classes may also classify elements based on other characteristics that are not directly found in the document element tree (such as 'first-child'.)

Unlike Pseudo-elements, Pseudo-classes are allowed anywhere in CSS selectors.

Boring Copyright Stuff....