<input type="number"/> or
<input type="number" />
HTML5 only. Creates a control (a text field or spinner) for specifying a numerical value.
This is an empty element. In HTML, the end tag is forbidden. In XHTML, the element must be closed with a trailing slash as just shown. Developers may include a space character before the slash for backward compatibility with older browsers.
on) or requires the user to enter the information every time (
off). Omitting this attribute causes the control to inherit the
autocompletesetting for the associated
datalistelement. The value of the list attribute is the
idof the associated
maxvalue must not be less than the
minvalue defines the base for
typeof the input control. It may be a number, a text string (such as a date), or the keyword
any, which allows any unit value.
<input type="number" name="price" minimum="100000" max="1000000" step="10000">
The spinner form control is not yet supported and can not be displayed.