HTML and CSS Reference
In-Depth Information
<li>
<input type="checkbox"
name="os" value="DOS"
>
DOS</li>
</ul>
HTML5 Global Attributes
autofocus
(
autofocus="autofocus"
in XHTML) (
Not in HTML 4.01
)
checked
(
checked="checked"
in XHTML)
disabled
(
disabled="disabled"
in XHTML)
form="
id of the form owner
"
(
Not in HTML 4.01
)
name="
text
"
required
(
required="required"
in XHTML) (
Not in HTML 4.01
)
value="
text
"
input type=
"
color
"
This input type is not valid in HTML 4.01
.
Creates a color picker control for selecting a color value:
<input type="color"
name="background" value="3D458A"
>
HTML5 Global Attributes
autocomplete="on|off"
autofocus
(
autofocus="autofocus"
in XHTML)
disabled
(
disabled="disabled"
in XHTML)
form="
id of form owner
"
list="
id of datalist
"
name="
name
"
value="
text
"
input type=
"
date
"
This input type is not valid in HTML 4.01
.