Understanding Pseudo-classes and Pseudo-elements in CSS
Pseudo-classes are used to define a special state of an element using CSS. There are (in late 2023) around 30 pseudo-classes. Pseudo-elements are called pseudo-elements because they do not exist in the DOM. While there are too many to go into in deta...
fieldsmarshall.com5 min read