HTML and CSS Reference
In-Depth Information
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
"
max="
number or string
"
min="
number or string
"
name="
name
"
readonly
(
readonly="readonly"
in XHTML)
required
(
required="required"
in XHTML)
step="any
|number
"
value="
YYYY-MM
"
input type=
"
number
"
This input type is not valid in HTML 4.01
.
Creates a control (a text field or spinner) for specifying a numerical value:
<
input type="number"
name="price" min="100000"
max="300000" step="10000">
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
"
max="
number
"