CSS Pseudo-elements
CSS pseudo-elements — ::before, ::after, ::first-line and more. This category documents 24 CSS pseudo-elements entries, and each page gives you the full syntax, the accepted values with explanations, a working example, and browser support data. The entries are: ::before, ::after, ::first-line, ::first-letter, ::selection, ::placeholder, ::marker, ::backdrop, ::file-selector-button, ::cue, ::slotted, ::part, ::grammar-error, ::spelling-error, ::target-text, ::view-transition, ::view-transition-group, ::view-transition-image-pair, ::view-transition-new, ::view-transition-old, ::details-content, ::checkmark, ::highlight(), ::input-placeholder. Not sure where to start? ::before and ::after are among the most used entries in this category. The pseudo-elements category is one of 21 categories in the CSS Reference, which covers 841+ entries in total. You can also search across every category from the search page, learn the topic end to end in the guides, or return to the CSS Reference homepage.