Game Development Reference
In-Depth Information
•
step
(acceptable values include
any
or any positive integer): Specifies
how the value attribute of the element is to change
•
required
(acceptable values include
required
,
""
, or empty): Speci-
fies that this element must have a valid value in order for the form to be
allowed to submit
•
value
(value must be a valid partial time in the form of "YYYY-MM-
DDTHH:MM:SS.Mss", "YYYY-MM-DDTHH:MM:SS", or "YYYY-MM-
DDTHH:MM"): Specifies the actual date represented by this element
Color
The color input type allows the user to select a specific color from a browser-supplied
color picker. The specific format and styling of this color picker widget is unique to
the browser and platform used. Although some implementations of the widget may
provide values in different format (RGB or HSL), the data that results from a color
selection is a hexadecimal representation of the color in the form
#RRGGBB
.
<input type="color"
value="#900CC1"
/>
Other valid attributes for the date input type include the following:
•
name
(value must be a string): Identifies a particular field by the string
value associated with the attribute.
•
disabled
(acceptable values include
disabled
,
""
, or empty): Speci-
fies that the element is disabled and cannot receive control.
•
autocomplete
(acceptable values include
on
or
off
): Specifies wheth-
er the browser should store values entered by the user so inputting a
stored value in the future can be automatically completed by the browser
upon hint by user.
•
autofocus
(acceptable values include
autofocus
,
""
, or empty): Spe-
cifies to the browser that the element must receive focus immediately
after the document finishes loading.
•
value
(value must be a valid hexadecimal color with exactly seven char-
acters in length and of the form "#rrggbb" or "#RRGGBB"): Specifies the
actual color represented by this element. Keywords, such as Color, are
not allowed.