back

Pseudo Element

Pseudo elements are used with selectors to give different styling to elements. They differ from pseudo classes as they don't style the whole element, just parts of them.

In CSS2 pseudo elements have one colon (:) while in CSS3 two are used (::), most browsers support both types.

::after
::before
::first-letter
::first-line