Supported Input Values
Supported values for the input tag are described here.
Input Type Values
Safari supports many different input types. They can be specified using the type attribute of the input element. These input types are listed below.
button
A button input type. More versatile than a submit button.
Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Availability
checkbox
A standard checkbox.
Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Availability
date
An input control for specifying a date value. The user can select a month, day of the month, and year.
Available in iOS 5.0 and later.
- Availability
datetime
An input control for specifying a date and time value. The user can select a month, day of the month, year, and time of day.
Available in iOS 5.0 and later.
- Availability
datetime-local
An input control for specifying a date and time value where the format depends on the locale.
Available in iOS 5.0 and later.
- Availability
A text field for specifying an email address. Brings up a keyboard optimized for email address entry in iOS 3.1 and later.
Available in iOS 3.1 and later.
- Availability
file
A file upload interface.
Available in Safari 1.0 and later.
- Availability
hidden
A hidden input type (to store values without showing them on the page). Note that the input can still be seen in the page source.
Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Availability
image
An image that acts as an input.
Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Availability
month
An input control for selecting a month.
Available in iOS 5.0 and later.
- Availability
number
A text field for specifying a number. Brings up a number pad keyboard in iOS 3.1 and later. Specifying an input type of \d* or [0-9]* is equivalent to using this type.
Available in iOS 3.1 and later.
- Availability
password
A visually-shielded password field.
Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Availability
radio
A radio button.
Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Availability
range
A slider. Its minimum value should be set with the min attribute, its maximum value should be set with max , and its discrete step size should be set with step .
Available in Safari 2.0 and later.
Apple extension.
- Availability
- Support Level
reset
A reset button for a form.
Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Availability
search
A search field. Uses the “onsearch”, “incremental”, “placeholder”, “autosave”, and “results” attributes in addition to standard HTML attributes.
Available in Safari 2.0 and later.
Available in iOS 5.0 and later.
Apple extension.
- Availability
- Support Level
submit
A submission button for a form.
Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Availability
tel
A text field for specifying a phone number. Brings up a phone pad keyboard in iOS 3.1 and later.
Available in iOS 3.1 and later.
- Availability
text
A standard text field.
Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Availability
time
An input control for specifying a time value. The user can select the hour, minute, and optionally AM or PM.
Available in iOS 5.0 and later.
- Availability
url
A text field for specifying a URL. Brings up a keyboard optimized for URL entry in iOS 3.1 and later.
Available in iOS 3.1 and later.
- Availability
week
An input control for selecting a week.
Available in iOS 5.0 and later.
- Availability
© 2011 Apple Inc. All Rights Reserved. (Last updated: 2011-07-12)