:checked (CSS3)

The :checked pseudo-class selector represents any radio (<input type="radio">), checkbox (<input type="checkbox">) or option (<option> in a <select> ) element that is checked or toggled to an on state.

Syntax

:checked { declaration block }

Examples having uses of: ':checked'