Introduction

A CSS pseudo-class adds selectors that specify a special state of the element to be selected and used to add special effects to some selectors. A pseudo-class allows you to style Content Dynamically based on its position in the document or state.
Syntax
  1. selector: pseudo-class { property: value; }
  2. selector: pseudo-element {property: value}
  3. selector. class: pseudo-element {property: value}
The most-commonly used pseudo-classes are-
The most commonly used pseudo-elements are:

Conclusion

I hope this article provides you a better understanding of pseudo-class and pseudo-elements.