Pseudo-Class Definition

Pseudo-class selectors are CSS selectors with a colon preceding them. You are probably very familiar with a few of them. For example:

a:hover

A pseudo-class is used to define a special state of an element. It can be used to:


The syntax of pseudo-classes is:

selector:pseudo-class { property:value; }
Back button Table of Contents Next button