CSS · Selectors and cascade
:checked
Matches checked radio buttons and checkboxes, or selected options.
Syntax
:checkedExample
Try it
Notes
Pair it with a visible label change so the state is obvious.
More in this group
Learn this in the course
Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.