Pseudo-Classes in CSS
Learn about pseudo-classes and pseudo-elements in CSS.
We'll cover the following...
What are pseudo-classes?
A pseudo-class describes how a selector should look when in a special state.
The most common special state for any element is its hover state, and therefore, the pseudo-class of :hover
is most commonly used.
Let’s consider an example:
Note: The colon
:
is used to separate a property from its value, while the space is used to indicate a descendant ...
Access this course and 1400+ top-rated courses and projects.