Safari Reference Library Apple Developer
Search

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.

Availability

Available in Safari 1.0 and later. Available in iPhone OS 1.0 and later.

checkbox

A standard checkbox.

Availability

Available in Safari 1.0 and later. Available in iPhone OS 1.0 and later.

email

A text field for specifying an email address. Brings up a keyboard optimized for email address entry in iPhone OS 3.1 and later.

Availability

Available in iPhone OS 3.1 and later.

file

A file upload interface.

Availability

Available in Safari 1.0 and later.

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.

Availability

Available in Safari 1.0 and later. Available in iPhone OS 1.0 and later.

image

An image that acts as an input.

Availability

Available in Safari 1.0 and later. Available in iPhone OS 1.0 and later.

number

A text field for specifying a number. Brings up a number pad keyboard in iPhone OS 3.1 and later. Specifying an input type of \d* or [0-9]* is equivalent to using this type.

Availability

Available in iPhone OS 3.1 and later.

password

A visually-shielded password field.

Availability

Available in Safari 1.0 and later. Available in iPhone OS 1.0 and later.

radio

A radio button.

Availability

Available in Safari 1.0 and later. Available in iPhone OS 1.0 and later.

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 .

Availability

Available in Safari 2.0 and later.

Support Level

Apple extension.

reset

A reset button for a form.

Availability

Available in Safari 1.0 and later. Available in iPhone OS 1.0 and later.

search

A search field. Uses the “onsearch”, “incremental”, “placeholder”, “autosave”, and “results” attributes in addition to standard HTML attributes.

Availability

Available in Safari 2.0 and later.

Support Level

Apple extension.

submit

A submission button for a form.

Availability

Available in Safari 1.0 and later. Available in iPhone OS 1.0 and later.

tel

A text field for specifying a phone number. Brings up a phone pad keyboard in iPhone OS 3.1 and later.

Availability

Available in iPhone OS 3.1 and later.

text

A standard text field.

Availability

Available in Safari 1.0 and later. Available in iPhone OS 1.0 and later.

url

A text field for specifying a URL. Brings up a keyboard optimized for URL entry in iPhone OS 3.1 and later.

Availability

Available in iPhone OS 3.1 and later.




Last updated: 2010-08-03

Did this document help you? Yes It's good, but... Not helpful...