pseudoelement
In CSS, a pseudoelement is a keyword that can be added to a selector to style a part of an element or its generated content. Pseudoelements are not actual nodes in the document object model; they exist in the rendering tree and are created by the browser to apply decorative or structural styling without modifying the DOM.
The most common pseudoelements are ::before and ::after, which insert generated content before or after an element's
Older browsers used a single colon syntax (:before and :after). Modern CSS uses the double colon syntax
Other examples include ::first-letter, ::first-line, ::selection, and ::marker. Pseudoelements extend what can be styled without extra
Accessibility and compatibility: because pseudoelements do not exist in the DOM, rely on them for visual presentation