Pseudo Class

A CSS pseudo-class is a keyword added to a selector that specifies a special state of the selected element(s).

:first-child pseudo-class

The :first-child pseudo-class matches when the element E is the first child of the parent element.

E: first-child {...}
link pseudo class

A link has five states in CSS which have the below corresponding pseudo-classes.

:linkfor links that have not yet been visited
:visitedfor links that have been visited
:hoverfor a link with the mouse pointer over it
:activefor a link when it is activated (when the mouse pointer is clicked on it)
:focusfor a link that has the focus (use key to activate it)
Related Tutorial
Follow Us #
Contents +