:checked

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

Syntax

:checked { sRules }

Possible values

sRules

Value that specifies one or more Cascading Style Sheets (CSS) attribute/value pairs.

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).

Standards Information

This pseudo-element is defined in CSS Selectors Level 3 Gg721803.xtlink_newWindow(en-us,Expression.40).png.

Applies to

a, address, b, big, blockquote, body, br, button, caption, cite, code, dd, dfn, div, dl, dt, em, hn, i, img, input type=file, input type=image, input type=password, input type=text, kbd, label, legend, li, listing, marquee, menu, nobr, ol, p, plaintext, pre, s, samp, small, span, strike, strong, sub, sup, table, tbody, td, textarea, tfoot, th, thead, tr, tt, u, ul

dd, dfn, div, dl, dt, em, hn, i, img, input type=file, input type=image, input type=password, input type=text, kbd, label, legend, li, listing, marquee, menu, nobr, ol, p, plaintext, pre, s, samp, small, span, strike, strong, sub, sup, table, tbody, td, textarea, tfoot, th, thead, tr, tt, u, ul

See also

Concepts

:enabled
:disabled
:indeterminate

Send feedback about this topic to Microsoft. © 2011 Microsoft Corporation. All rights reserved.