Using ::before and ::after
::before and ::after are probably the most used pseudo-elements. They are used to add content before or after an element, like icons for example.
Here’s the list of the pseudo-elements:
::after
creates a pseudo-element after the element
::before
creates a pseudo-element before the element
::first-letter
can be used to style the first letter of a block of text
::first-line
can be used to style the first line of a block of text
::selection
targets the text selected by the user