Explain the concept of pseudo-elements in CSS

Explain the concept of pseudo-elements in CSS.

1 Like

A CSS pseudo-element is used to style and effect the specified parts of an element. It can be used to -

  1. Style the first letter / line of an element.
  2. Change the content before / after the value of the element.