CSS2 Pseudo-Class and Pseudo-Element Property Reference Guide

CSS2 Pseudo-Class and Pseudo-Element Property Reference Guide

This is a complete reference guide for web developers that lists all the CSS properties related to pseudo-classes and pseudo-elements defined in the Cascading Style Sheets Level 2 specification recommended by the World Wide Web Consortium.

Click on any property to view its description with examples –

Number Property and Description
1 :active Use this class to add special effects to activated elements.
2 :focus Use this class to add effects to an element when it receives focus.
3 :hover Use this class to add effects to an element when the mouse hovers over it.
4 :link Use this class to add special effects to a link when it’s not visited.
5 :visited Use this class to add special effects to a link after it’s been visited.
6 :first-child Use this class to add effects to the first child of an element.
7 :lang Use this class to specify the language to use for a given element.
8 :first-letter Use this element to add a special effect to the first letter of text.
9 :first-line Use this element to add a special effect to the first line of text.
10 :before Use this element to insert content before an element.
11 :after Use this element to insert content after an element.

Leave a Reply

Your email address will not be published. Required fields are marked *