Skip to content

Latest commit

 

History

History
7 lines (4 loc) · 391 Bytes

8. Describe pseudo-elements and discuss what they are used for.md

File metadata and controls

7 lines (4 loc) · 391 Bytes

Describe pseudo-elements and discuss what they are used for.

pseudo-element is a keyword added to a selector that lets you style a specific part of the selected element(s). For example, ::first-line can be used to change the font of the first line of a paragraph.

They can be used to add a special symbol before a paragraph, change color of first character of a line, etc.