Other Selectors
We have covered various types of selectors offered by CSS. There are just a few others and we will learn about them here.
We'll cover the following...
The :before
and :after
selectors
There are two additional pseudo-element selectors, :before
and :after
, that do something no other selector can; they let you add content preceding or succeeding a given element.
When you remove the h1 ~
...