CSS2 - Pseudo Class & Elements Properties


Advertisements


This is a complete reference guide for web developers where we have listed all the CSS properties related to Pseudo Class and Elements defined in the World Wide Web Consortium's Recommended Specification for Cascading Style Sheets, Level 2.

Click any property to see its description with examples −

Property Description

:active

Use this class to add special effect to an activated element.

:focus

Use this class to add special effect to an element while the element has focus.

:hover

Use this class to add special effect to an element when you mouse over it.

:link

Use this class to add special effect to an unvisited link.

:visited

Use this class to add special effect to a visited link.

:first-child

Use this class to add special effect to an element that is the first child of some other element.

:lang

Use this class to specify a language to use in a specified element.

:first-letter

Use this element to add special effect to the first letter of a text.

:first-line

Use this element to add special effect to the first line of a text.

:before

Use this element to insert some content before an element.

:after

Use this element to insert some content after an element.

css_references.htm

Advertisements