Courses / CSS
12. Pseudo-elements
Pseudo-elements are used to style a specific part of an element.
1 min read Chapter 12 of 32
CSS
Pseudo-elements
Pseudo-elements allow you to style specific parts of an element without adding extra HTML.
"I want to highlight the first letter of my paragraph without cluttering my markup."
Pseudo-elements are special selectors in CSS that let you apply styles to specific parts of an element, such as the first line or first letter.
"I want to highlight the first letter of my paragraph without cluttering my markup."
Pseudo-elements are special selectors in CSS that let you apply styles to specific parts of an element, such as the first line or first letter.