HTML <input> type Attribute
Example
<input type="time" name="tim">
Meaning
A control for entering a time value with no time zone.
Additional Attributes
- list: The id of the
<datalist>element that contains the optional pre-defined autocomplete options. - max: The latest time to accept, in the syntax described under Time value format.
- min: The earliest time to accept as a valid input.
- readonly:A Boolean attribute indicating whether or not the contents of the input should be read-only.
- step: The stepping interval to use both for user interfaces purposes and during constraint validation.
- spellcheck: Controls whether or not to enable spell checking for the input field, or if the default spell checking configuration should be used.
Standard Syntax
HTML: <input type="time">
XHTML: <input type="time" />
Advertisement