CSS Pseudo
Pseudo-class: Implicit CSS classes
A CSS selector for specific states of an element such as :hover
, :disabled
, or :first-child
. It is a pseudo class since the the targeted element does not actually have these classes applied to them.
Reference
- Syntax: Pseudo-classes use a single colon
:
- Full list of pseduo classes
Pseudo-element: Implicit DOM nodes
A CSS selector for implicitly added DOM nodes. These are typically relative to an explicitly added DOM node such as ::before
and ::first-letter
.
Reference
- Syntax: Pseudo-elements use a double color
::
- Full list of pseudo elements