CSS Pseudo-class

Pseudo-class is a keyword added to selectors that specifies a special state of the element to be selected.

CSS

a:link {    color: green;}

a:visited {    color: red;}

a:hover {    color: yellow;}

a:active {   color: black;}

pseudo-classes

:active :checked
:default :dir()
:disabled :empty
:enabled :first
:first-child :first-of-type
:fullscreen :focus
:hover :indeterminate
:in-range :invalid
:lang() :last-child
:last-of-type :left
:link :not()
:nth-child() :nth-last-child()
:nth-last-of-type() :nth-of-type()
:only-child :only-of-type
:optional :out-of-range
:read-only :read-write
:required :right
:root :scope
:target :valid
:visited
Tag: