::after, ::before, ::first-letter, ::first-line
CSS3 introduced these notations (with two colons) to distinguish pseudo-classes from pseudo-elements. Browsers also accept
:after
,
:before
,
:first-letter
,
:first-line
, introduced in CSS2
by Valeri Tandilashvili
5 years ago
CSS
pseudo-elements
CSS
1
Pro tip: use ```triple backticks around text``` to write in code fences