Using the UI Pseudo-Class Selectors
Description
The UI pseudo-class selectors allow you to select elements based on their state.
- :enabled
Selects elements that are in their enabled state.
CSS Version 3 - :disabled
Selects elements that are in their disabled state.
CSS Version 3 - :checked
Selects elements that are in a checked state.
CSS Version 3 - :default
Selects default elements.
CSS Version 3 - :valid
:invalid
Selects input elements that are valid or invalid, based on input validation.
CSS Version 3 - :in-range
:out-of-range
Selects constrained input elements that are within or outside the specified range.
CSS Version 3 - :required
:optional
Selects input elements based on the presence of the required attribute.
CSS Version 3