:checked pseudo-class

Applies one or more styles to the form control element that is selected.

Selectors Level 3, Section 6.6.4.2

Syntax

selector :checked {...}

Parameters

selector

A CSS simple selector

Standards information

Remarks

The :checked pseudo-class is a UI element states pseudo-class. UI element states pseudo-classes select UI elements (form controls such as radio buttons or check boxes) that are in a certain state—enabled, disabled, or selected (checked).

See also

Reference
:enabled
:disabled
:indeterminate

 

 

Show:
© 2014 Microsoft