CSS Pseudo Properties
CSS Pseudo-Classes and Pseudo-Elements
CSS 2.1 introduced the idea of pseudo-classes and pseudo-elements as ways to style elements of the document that weren't explicitly defined by a position in the document tree. These pseudo-classes and -elements give designers more flexibility in how they style various parts of their web pages.
What is a CSS Pseudo-Class Selector?
A CSS pseudo-class selector names the HTML tag or XHTML elements to style.
The :active pseudo-class matches active links as they're clicked on.
The :after pseudo-element allows you to insert generated content after the element defined.
The :before pseudo-element allows you to insert generated content before the element defined.
The :first-child pseudo-class matches the element that is the first child of another element.
The :first-letter pseudo-element allows you to define styles for the first letter of an element.
The :first-line pseudo-element allows you to define styles for the first line of an element.
The :focus pseudo-class matches elements while they have focus.
The :hover pseudo-class matches elements as you mouse over them.
The :lang pseudo-class matches on the language defined in the document.
The :link pseudo-class matches unvisited links.
A description of the CSS property nth-child
A description of the CSS property nth-last-child
A description of the CSS property nth-last-of-type
A description of the CSS property nth-of-type
The :visited pseudo-class matches visited links.