Pseudo-Element Selectors
Pseudo-elements create virtual elements that do not exist in the HTML source. They are prefixed with a double colon (::) in modern CSS.
Content Pseudo-Elements
::before and ::after insert generated content at the start or end of an element. They require a content property (even if empty).
Text Pseudo-Elements
::first-letter targets the first character — useful for drop-caps. ::first-line targets the first rendered line of text.
Selection Pseudo-Element
::selection styles the highlighted portion of text when a user selects it.
Placeholder
::placeholder styles the placeholder text inside form inputs.