In CSS there are PseudoClasses as well as PseudoElements. The difference between them is whether or not the content you want to style is actually an existing tag/element.
This video talks about all the different available pseudo classes and elements with examples.
Code GIST: https://gist.github.com/prof3ssorSt3v...