About
A pseudo-class is a keyword added to operator that specifies a special state of the element to be selected.
- Logical Pseudo-class (:matches, :not, :has )
- Grid Pseudo-class (:nth-column(), :nth-last-column())
- Time Pseudo-class (:current, :past, :future)
Example
nth
The second h2 element:
h2:nth-of-type(2)
Since selector - 3 nth-of-type pseudo class