This section contains a list of selectors available for cascading style sheets.
Selectors
Class Matches the class property of the specified element.
Equality property Exactly matches the specified property value.
Existence property Matches the property, whatever its value.
Hyphen property Matches any property value that is exactly equal or, optionally, is followed by a hyphen.
ID Matches the class property of the specified element.
Prefix property Matches the specified prefix of a property value.
Substring property Matches the specified substring of a property value.
Suffix property Matches the specified suffix of a property value.
Type Matches any element of the specified type.
Universal Matches any element type.
Whitespace property Exactly matches the specified property value in a space-delimited list of values.
Pseudo-classes
:active Sets the style of an A element when the link is engaged or active.
:first-child Applies one or more styles to any element that is the first child of its parent.
:hover Sets the style of an element when the user rests the pointer on the element.
:link Sets the style of an A element when the link has not been visited recently.
:visited Sets the style of an A element when the link has been visited recently.
Pseudo-elements
:first-letter Applies one or more styles to the first letter of the object.
:first-line Applies one or more styles to the first line of the object.
Combinators
Adjacent sibling Specifies an adjacent sibling relationship between selector elements.
Child Specifies a direct descendant relationship between selector elements.
Descendant Specifies a relationship between an ancestor selector element and a descendent element (child, grandchild, great-grandchild, and so on).
General sibling Specifies a general sibling relationship between selector elements.