HTML Attributes

HTML checked attribute

Build a form with the HTML form generator

Sets the default checked state for a checkbox or radio input. The current checked state is a DOM property and may change independently after user interaction. Applicable elements include: <input>. Check each element’s value rules. Boolean syntax: presence enables the state; omit the attribute to disable it. A string value of "false" does not turn it off. On checkbox and radio inputs, checked sets the initial checkedness, not necessarily the current state after interaction. Read the checked DOM property for the current state. A radio group is defined by its form owner, tree and nonempty name. Unchecked controls are not submitted.

Formal Syntax & Structure

html syntaxhtml
checked

Parameters & Attributes

NameTypeDescription
checkedbooleanSets the default checked state for a checkbox or radio input. The current checked state is a DOM property and may change independently after user interaction.

Working Example

Example Snippethtml
<label>  <input type="checkbox" name="updates" checked>  Updates</label>

Browser Compatibility

Minimum supported versions across modern rendering engines

Blink (modern)
Chrome
1
Yes
EdgeHTML / Blink
Edge
12
Yes
Gecko
Firefox
1
Yes
WebKit
Safari
1
Yes
Presto / Blink
Opera
≤12.1
Yes
Desktop support for checked on input only; other elements, input types, individual values and mobile behavior may differ.
HTML Living Standard
HTML Reference