Game Development Reference
In-Depth Information
autofocus (acceptable values include autofocus , "" , or empty): Spe-
cifies to the browser that the element must receive focus immediately
after the document finishes loading.
min (value must be a floating point number): Specifies the lowest number
allowed to be selected by the user.
max (value must be a floating point number): Specifies the highest num-
ber allowed to be selected by the user.
readonly (acceptable values include readonly , "" , or empty): Speci-
fies that the value of this element cannot be changed by the user.
placeholder (value must be a string): Specifies a string to be shown to
the user as a hint as to what information the field expects. This string dis-
appears when data is entered into the field, and is shown when the field
becomes empty.
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 floating point number): Specifies the actual float-
ing point number represented by this element.
Search
The search input type allows the user to enter a string intended for a search. Overall,
the search input type looks and behaves very much like a regular text input type.
Some browsers might add miscellaneous behavior to this field, such as built-in icons
or widgets to instantly clear the field, but none of these are officially part of the spe-
cification.
<input type="search"
placeholder="Search"
pattern="[^!\?]"
/>
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.
Search WWH ::




Custom Search