HTML Standard attribute: checked
[this page | pdf | back links]
The
HTML checked attribute specifies that the
(sub)-element should be pre-selected (i.e. ‘checked’) when the page first loads.
It applies to <input>
elements (if type = checkbox or
type = radio). It also applies
to <menuitem>
elements (but these are not currently supported by many browsers)
Valid
attribute
values (when used with an <input>
element) include:
|
Value
|
Description
|
|
checked
|
Sub-element should be
pre-selected
|
Valid attribute values
(when used with a <menuitem>
element) include:
|
Value
|
Description
|
|
checked
|
Indicates that
command/menu item should be checked when page loads. Only applies to type = radio or type = checkbox
|
NAVIGATION LINKS
Contents | Prev | Next | HTML Attributes