Revision 355727 of <input>

  • Revision slug: HTML/Element/Input
  • Revision title: <input>
  • Revision id: 355727
  • Created:
  • Creator: Havvy
  • Is current revision? No
  • Comment More information for input[pattern], though I'm not sure if the last part is understandable.

Revision Content

Summary

The HTML <input> element is used to create interactive controls for web-based forms.

  • Content categories Flow content, listed, submittable, resettable, form-associated element, phrasing content.
    If the {{htmlattrxref("type", "input")}} has not the hidden value, labellable element, palpable content.
  • Permitted content None, this is a void element.
  • Tag omission Must have a start tag and must not have an end tag.
  • Permitted parent elements Any element that accepts phrasing content.
  • DOM interface {{domxref("HTMLInputElement")}}

Attributes

This element includes the global attributes.

{{htmlattrdef("type")}}
The type of control to display. The default type is text, if this attribute is not specified. Possible values are:
  • button: A push button with no default behavior.
  • checkbox: A check box. You must use the value attribute to define the value submitted by this item. Use the checked attribute to indicate whether this item is selected. You can also use the indeterminate attribute to indicate that the checkbox is in an indeterminate state (on most platforms, this draws a horizontal line across the checkbox).
  • color: {{HTMLVersionInline(5)}} A control for specifying a color.
  • date: {{HTMLVersionInline(5)}} A control for entering a date (year, month, and day, with no time).
  • datetime: {{HTMLVersionInline(5)}} A control for entering a date and time (hour, minute, second, and fraction of a second) based on UTC time zone.
  • datetime-local: {{HTMLVersionInline(5)}} A control for entering a date and time, with no time zone.
  • email: {{HTMLVersionInline(5)}} A field for editing an e-mail address. The {{cssxref(":valid")}} and {{cssxref(":invalid")}} CSS pseudo-classes are applied as appropriate.
  • file: A control that lets the user select a file. Use the accept attribute to define the types of files that the control can select.
  • hidden: A control that is not displayed, but whose value is submitted to the server.
  • image: A graphical submit button. You must use the src attribute to define the source of the image and the alt attribute to define alternative text. You can use the height and width attributes to define the size of the image in pixels.
  • month: {{HTMLVersionInline(5)}} A control for entering a month and year, with no time zone.
  • number: {{HTMLVersionInline(5)}} A control for entering a floating point number.
  • password: A single-line text field whose value is obscured. Use the maxlength attribute to specify the maximum length of the value that can be entered.
  • radio: A radio button. You must use the value attribute to define the value submitted by this item. Use the checked attribute to indicate whether this item is selected by default. Radio buttons that have the same value for the name attribute are in the same "radio button group"; only one radio button in a group can be selected at one time.
  • range: {{HTMLVersionInline(5)}} A control for entering a number whose exact value is not important. This type control uses the following default values if the corresponding attributes are not specified:
    • min: 0
    • max: 100
    • value: min + (max-min)/2, or min if max is less than min
    • step: 1
  • reset: A button that resets the contents of the form to default values.
  • search: {{HTMLVersionInline(5)}} A single-line text field for entering search strings; line-breaks are automatically removed from the input value.
  • submit: A button that submits the form.
  • tel: {{HTMLVersionInline(5)}} A control for entering a telephone number; line-breaks are automatically removed from the input value, but no other syntax is enforced. You can use attributes such as pattern and maxlength to restrict values entered in the control. The {{cssxref(":valid")}} and {{cssxref(":invalid")}} CSS pseudo-classes are applied as appropriate.
  • text: A single-line text field; line-breaks are automatically removed from the input value.
  • time: {{HTMLVersionInline(5)}} A control for entering a time value with no time zone.
  • url: {{HTMLVersionInline(5)}} A field for editing a URL. The user may enter a blank or invalid address. Line-breaks are automatically removed from the input value. You can use attributes such as pattern and maxlength to restrict values entered in the control. The {{cssxref(":valid")}} and {{cssxref(":invalid")}} CSS pseudo-classes are applied as appropriate.
  • week: {{HTMLVersionInline(5)}} A control for entering a date consisting of a week-year number and a week number with no time zone.
{{htmlattrdef("accept")}}
If the value of the type attribute is file, this attribute indicates the types of files that the server accepts; otherwise it is ignored. The value must be a comma-separated list of unique content type specifiers:
  • A valid MIME type with no extensions
  • audio/* representing sound files {{HTMLVersionInline(5)}}
  • video/* representing video files {{HTMLVersionInline(5)}}
  • image/* representing image files {{HTMLVersionInline(5)}}
{{htmlattrdef("accesskey")}} {{HTMLVersionInline(4)}} only, {{obsoleteGeneric("inline", "HTML5")}}
A single-character that the user can press to switch input focus to the control. This attribute is global in HTML5.
{{htmlattrdef("mozactionhint")}} {{non-standard_inline}}
Specifies an "action hint" used to determine how to label the enter key on mobile devices with virtual keyboards. Supported values are go, done, next, search, and send; these automatically get mapped to the appropriate string (and are case-insensitive).
{{htmlattrdef("autocomplete")}} {{HTMLVersionInline(5)}}
This attribute indicates whether the value of the control can be automatically completed by the browser. This attribute is ignored if the value of the type attribute is hidden, checkbox, radio, file, or a button type (button, submit, reset, image). Possible values are:
  • off: The user must explicitly enter a value into this field for every use, or the document provides its own auto-completion method; the browser does not automatically complete the entry.
  • on: The browser can automatically complete the value based on values that the user has entered during previous uses.

If the autocomplete attribute is not specified on an input element, then the browser uses the autocomplete attribute value of the <input> element's form owner. The form owner is either the form element that this <input> element is a descendant of or the form element whose id is specified by the form attribute of the input element. For more information, see the autocomplete attribute in {{HTMLElement("form")}}.

{{htmlattrdef("autofocus")}} {{HTMLVersionInline(5)}}
This Boolean attribute lets you specify that a form control should have input focus when the page loads, unless the user overrides it, for example by typing in a different control. Only one form element in a document can have the autofocus attribute, which is a Boolean. It cannot be applied if the type attribute is set to hidden (that is, you cannot automatically set focus to a hidden control).
{{htmlattrdef("autosave")}} {{HTMLVersionInline(5)}}
This attribute should be defined as a unique value. If the value of the type attribute is search, previous search term values will persist in the dropdown across page load.
{{htmlattrdef("checked")}}
When the value of the type attribute is radio or checkbox, the presence of this Boolean attribute indicates that the control is selected by default; otherwise it is ignored.
{{htmlattrdef("disabled")}}
This Boolean attribute indicates that the form control is not available for interaction. In particular, the click event will not be dispatched on disabled controls. Also, a disabled control's value isn't submitted with the form.

This attribute is ignored if the value of the type attribute is hidden.

{{htmlattrdef("form")}} {{HTMLVersionInline(5)}}
The form element that the input element is associated with (its form owner). The value of the attribute must be an id of a {{HTMLElement("form")}} element in the same document. If this attribute is not specified, this <input> element must be a descendant of a {{HTMLElement("form")}} element. This attribute enables you to place <input> elements anywhere within a document, not just as descendants of their form elements. An input can only be associated with one form.
{{htmlattrdef("formaction")}}{{HTMLVersionInline(5)}}
The URI of a program that processes the information submitted by the input element, if it is a submit button or image. If specified, it overrides the {{htmlattrxref("action","form")}} attribute of the element's form owner.
{{htmlattrdef("formenctype")}}{{HTMLVersionInline(5)}}
If the input element is a submit button or image, this attribute specifies the type of content that is used to submit the form to the server. Possible values are:
  • application/x-www-form-urlencoded: The default value if the attribute is not specified.
  • multipart/form-data: Use this value if you are using an {{HTMLElement("input")}} element with the {{htmlattrxref("type","input")}} attribute set to file.
  • text/plain

If this attribute is specified, it overrides the {{htmlattrxref("enctype","form")}} attribute of the element's form owner.

{{htmlattrdef("formmethod")}}{{HTMLVersionInline(5)}}
If the input element is a submit button or image, this attribute specifies the HTTP method that the browser uses to submit the form. Possible values are:
  • post: The data from the form is included in the body of the form and is sent to the server.
  • get: The data from the form are appended to the form attribute URI, with a '?' as a separator, and the resulting URI is sent to the server. Use this method when the form has no side-effects and contains only ASCII characters.

If specified, this attribute overrides the {{htmlattrxref("method","form")}} attribute of the element's form owner.

{{htmlattrdef("formnovalidate")}}{{HTMLVersionInline(5)}}
If the input element is a submit button or image, this Boolean attribute specifies that the form is not to be validated when it is submitted. If this attribute is specified, it overrides the {{htmlattrxref("novalidate","form")}} attribute of the element's form owner.
{{htmlattrdef("formtarget")}}{{HTMLVersionInline(5)}}
If the input element is a submit button or image, this attribute is a name or keyword indicating where to display the response that is received after submitting the form. This is a name of, or keyword for, a browsing context (for example, tab, window, or inline frame). If this attribute is specified, it overrides the {{htmlattrxref("target", "form")}} attribute of the elements's form owner. The following keywords have special meanings:
  • _self: Load the response into the same browsing context as the current one. This value is the default if the attribute is not specified.
  • _blank: Load the response into a new unnamed browsing context.
  • _parent: Load the response into the parent browsing context of the current one. If there is no parent, this option behaves the same way as _self.
  • _top: Load the response into the top-level browsing context (that is, the browsing context that is an ancestor of the current one, and has no parent). If there is no parent, this option behaves the same way as _self.
{{htmlattrdef("height")}} {{HTMLVersionInline(5)}}
If the value of the type attribute is image, this attribute defines the height of the image displayed for the button.
{{htmlattrdef("inputmode")}} {{HTMLVersionInline(5)}}
A hint to the browser for which keyboard to display. This attribute applies when the value of the type attribute is text, password, email, or url. Possible values are:
  • verbatim: Alphanumeric, non-prose content such as usernames and passwords.
  • latin: Latin-script input in the user's preferred language with typing aids such as text prediction enabled. For human-to-computer communication such as search boxes.
  • latin-name: As latin, but for human names.
  • latin-prose: As latin, but with more aggressive typing aids. For human-to-human communication such as instant messaging for email.
  • full-width-latin: As lating-prose, but for the user's secondary languages.
  • kana: Kana or romaji input, typically hiragana input, using full-width characters, with support for converting to kanji. Intended for Japanese text input.
  • katakana: Katakana input, using full-width characters, with support for converting to kanji. Intended for Japanese text input.
  • numeric: Numeric input, including keys for the digits 0 to 9, the user's preferred thousands separator character, and the character for indicating negative numbers. Intended for numeric codes, e.g. credit card numbers. For actual numbers, prefer using <input type="number">
  • tel: Telephone input, including asterisk and pound key. Use <input type="tel"> if possible instead.
  • email: Email input. Use <input type="email"> if possible instead.
  • url: URL input. Use <input type="url"> if possible instead.
{{htmlattrdef("list")}} {{HTMLVersionInline(5)}}
Identifies a list of pre-defined options to suggest to the user. The value must be the id of a {{HTMLElement("datalist")}} element in the same document. The browser displays only options that are valid values for this input element. This attribute is ignored when the type attribute's value is hidden, checkbox, radio, file, or a button type.
{{htmlattrdef("max")}} {{HTMLVersionInline(5)}}
The maximum (numeric or date-time) value for this item, which must not be less than its minimum (min attribute) value.
{{htmlattrdef("maxlength")}} {{HTMLVersionInline(5)}}
If the value of the type attribute is text, email,search, password, tel, or url, this attribute specifies the maximum number of characters (in Unicode code points) that the user can enter; for other control types, it is ignored. It can exceed the value of the size attribute. If it is not specified, the user can enter an unlimited number of characters. Specifying a negative number results in the default behavior; that is, the user can enter an unlimited number of characters. The constraint is evaluated only when the value of the attribute has been changed.
{{htmlattrdef("min")}} {{HTMLVersionInline(5)}}
The minimum (numeric or date-time) value for this item, which must not be greater than its maximum (max attribute) value.
{{htmlattrdef("multiple")}}{{HTMLVersionInline(5)}}
This Boolean attribute indicates whether the user can enter more than one value. This attribute applies when the type attribute is set to email or file; otherwise it is ignored.
{{htmlattrdef("name")}}
The name of the control, which is submitted with the form data.
{{htmlattrdef("pattern")}}{{HTMLVersionInline(5)}}
A regular expression that the control's value is checked against. The pattern must match the entire value, not just some subset. Use the title attribute to describe the pattern to help the user. This attribute applies when the value of the type attribute is text, search, tel, url or email; otherwise it is ignored. The regular expression language is the same as JavaScript's. The pattern is not surrounded by forward slashes.
{{htmlattrdef("placeholder")}} {{HTMLVersionInline(5)}}
A hint to the user of what can be entered in the control . The placeholder text must not contain carriage returns or line-feeds. This attribute applies when the value of the type attribute is text, search, tel, url or email; otherwise it is ignored.
Note: Do not use the placeholder attribute instead of a {{HTMLElement("label")}} element. Their purposes are different: the {{HTMLElement("label")}} attribute describes the role of the form element; that is, it indicates what kind of information is expected, the placeholder attribute is a hint about the format the content should take. There are cases in which the placeholder attribute is never displayed to the user, so the form must be understandable without it.
{{htmlattrdef("readonly")}}
This Boolean attribute indicates that the user cannot modify the value of the control.

{{HTMLVersionInline(5)}} This attribute is ignored if the value of the type attribute is hidden, range, color, checkbox, radio, file, or a button type.

{{htmlattrdef("required")}} {{HTMLVersionInline(5)}}
This attribute specifies that the user must fill in a value before submitting a form. It cannot be used when the type attribute is hidden, image, or a button type (submit, reset, or button). The {{cssxref(":optional")}} and {{cssxref(":required")}} CSS pseudo-classes will be applied to the field as appropriate.
{{htmlattrdef("selectionDirection")}} {{HTMLVersionInline(5)}}
The direction in which selection occurred. This is "forward" if the selection was made from left-to-right in an LTR locale or right-to-left in an RTL locale, or "backward" if the selection was made in the opposite direction. This can be "none" if the selection direction is unknown.
{{htmlattrdef("size")}}
The initial size of the control. This value is in pixels unless the value of the type attribute is text or password, in which case, it is an integer number of characters. Starting in HTML5, this attribute applies only when the type attribute is set to text, search, tel, url, email, or password; otherwise it is ignored. In addition, the size must be greater than zero. If you don't specify a size, a default value of 20 is used.
{{htmlattrdef("spellcheck")}} {{HTMLVersionInline(5)}}
Setting the value of this attribute to true indicates that the element needs to have its spelling and grammar checked. The value default indicates that the element is to act according to a default behavior, possibly based on the parent element's own spellcheck value. The value false indicates that the element should not be checked.
{{htmlattrdef("src")}}
If the value of the type attribute is image, this attribute specifies a URI for the location of an image to display on the graphical submit button; otherwise it is ignored.
{{htmlattrdef("step")}} {{HTMLVersionInline(5)}}
Works with the min and max attributes to limit the increments at which a numeric or date-time value can be set. It can be the string any or a positive floating point number. If this attribute is not set to any, the control accepts only values at multiples of the step value greater than the minimum.
{{htmlattrdef("tabindex")}} element-specific in {{HTMLVersionInline(4)}}, global in {{HTMLVersionInline(5)}}
The position of the element in the tabbing navigation order for the current document.
{{htmlattrdef("usemap")}} {{HTMLVersionInline(4)}} only, {{obsoleteGeneric("inline", "HTML5")}}
The name of a {{HTMLElement("map")}} element to as an image map.
{{htmlattrdef("value")}}
The initial value of the control. This attribute is optional except when the value of the type attribute is radio or checkbox.
Note that when reloading the page, Gecko and IE will ignore the value specified in the HTML source, if the value was changed before the reload.
{{htmlattrdef("width")}} {{HTMLVersionInline(5)}}
If the value of the type attribute is image, this attribute defines the width of the image displayed for the button.
{{htmlattrdef("x-moz-errormessage")}} {{non-standard_inline}}
This Mozilla extension allows you to specify the error message to display when a field doesn't successfully validate.

 

Notes

File inputs

{{gecko_callout_heading("2.0")}}

Starting in Gecko 2.0 {{geckoRelease("2.0")}}, calling the click() method on an {{HTMLElement("input")}} element of type file opens the file picker and lets the user select files. See Using files from web applications for an example and more details.

You can't set the value of a file picker from a script; doing something like the following has no effect:

var e = getElementById("someFileInputElement");
e.value = "foo";

Error messages

If you want Firefox to present a custom error message when a field fails to validate, you can use the x-moz-errormessage attribute to do so:

<input type="email" x-moz-errormessage="Please specify a valid email address.">

Note, however, that this is not standard and will not have an effect on other browsers.

Examples

A simple input box

<!-- A basic input -->
<input type="text" name="input" value="Type here">

A common use-case senario

<!-- A common form that includes input tags -->
<form action="getform.php" method="get">
    First name: <input type="text" name="first_name" /><br />
     Last name: <input type="text" name="last_name" /><br />
        E-mail: <input type="email" name="user_email" /><br />
<input type="submit" value="Submit" />
</form>

Using mozactionhint on Firefox mobile

You can use the mozactionhint attribute to specify the text for the label of the enter key on the virtual keyboard when your form is rendered on Firefox mobile. For example, to have a "Next" label, you can do this:

<input type="text" mozactionhint="next" name="sometext" />

The result is:

mozactionhint.png

Specifications

Specification Status Comment
{{SpecName('HTML WHATWG', 'the-input-element.html#the-input-element', '<input>')}} {{Spec2('HTML WHATWG')}}  
{{SpecName('HTML5 W3C', 'the-input-element.html#the-input-element', '<input>')}} {{Spec2('HTML5 W3C')}}  
{{SpecName('HTML4.01', 'forms.html#h-17.4', '<form>')}} {{Spec2('HTML4.01')}}  

Browser compatibility

{{CompatibilityTable}}

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support 1.0 {{CompatGeckoDesktop("1.7 or earlier")}} 2 or earlier 1.0 1.0
type 1.0 {{CompatGeckoDesktop("1.7 or earlier")}} 2 1.0 1.0
type=button 1.0 {{CompatGeckoDesktop("1.7 or earlier")}} 3 1.0 1.0
type=checkbox 1.0 {{CompatGeckoDesktop("1.7 or earlier")}}
{{CompatGeckoDesktop("1.9.2")}} for indeterminate value
2 1.0 1.0
type=color 21.0 {{CompatNo}}
{{unimplemented_inline(547004)}}
{{CompatNo}} 11.01 {{CompatNo}}
type=date 5.0 (recognized but no UI) {{CompatNo}}
{{unimplemented_inline(446510)}}
{{CompatNo}} 10.62 {{CompatVersionUnknown}} (recognized but no UI)
type=datetime 5.0 (recognized but no UI) {{CompatNo}}
{{unimplemented_inline(446510)}}
{{CompatNo}} 10.62 {{CompatVersionUnknown}} (recognized but no UI)
type=datetime-local 5.0 (recognized but no UI) {{CompatNo}}
{{unimplemented_inline(446510)}}
{{CompatNo}} 10.62 {{CompatVersionUnknown}} (recognized but no UI)
type=email 5.0 {{CompatGeckoDesktop("2.0")}} 10 10.62 {{CompatUnknown}}
type=file 1.0 {{CompatGeckoDesktop("1.7 or earlier")}} 3.02 1.0 1.0
type=hidden 1.0 {{CompatGeckoDesktop("1.7 or earlier")}} 2 1.0 1.0
type=image 1.0 Gecko 2.0 only sends x and y coordinates when clicked, not longer the name/value of the element 2 1.0 1.0
type=month 5.0 (recognized but no UI) {{CompatNo}}
{{unimplemented_inline(446510)}}
{{CompatNo}} 10.62 {{CompatVersionUnknown}} (recognized but no UI)
type=number 6.0 (Localization in Chrome 11) {{CompatNo}}
{{unimplemented_inline(344616)}}
10
(recognized but no UI)
10.62 {{CompatVersionUnknown}}
type=password 1.0 {{CompatGeckoDesktop("1.7 or earlier")}} 2 1.0 1.0
type=radio 1.0 {{CompatGeckoDesktop("1.7 or earlier")}}
{{CompatGeckoDesktop("1.9.2")}} for indeterminate value
2 1.0 1.0
type=range 5.0 {{CompatNo}}
{{unimplemented_inline(344618)}}
10 10.62 (11.01 added support for a default value) {{CompatVersionUnknown}}
type=reset 1.0 {{CompatGeckoDesktop("1.7 or earlier")}} 2 1.0 1.0
type=search 5.0 {{CompatGeckoDesktop("2.0")}} 10 11.01 {{CompatVersionUnknown}}
type=submit 1.0 {{CompatGeckoDesktop("1.7 or earlier")}} 2 1.0 1.0
type=tel 5.0 {{CompatGeckoDesktop("2.0")}} 10 11.01 {{CompatUnknown}}
type=text 1.0 {{CompatGeckoDesktop("1.7 or earlier")}} 2 1.0 1.0
type=time 5.0 (recognized but no UI) {{CompatNo}}
{{unimplemented_inline(446510)}}
{{CompatNo}} 10.62 {{CompatVersionUnknown}} (recognized but no UI)
type=url 5.0 {{CompatGeckoDesktop("2.0")}} 10 10.62 {{CompatUnknown}}
type=week 5.0 (recognized but no UI) {{CompatNo}}
{{unimplemented_inline(446510)}}
{{CompatNo}} 10.62 {{CompatVersionUnknown}} (recognized but no UI)
accept=[MIME type] 8.0 {{CompatGeckoDesktop("16.0")}} {{CompatUnknown}} {{CompatNo}} {{CompatNo}}
accept=audio/* {{CompatVersionUnknown}} {{CompatGeckoDesktop("2.0")}}
Filters for the following audio file extensions: .aac, .aif, .flac, .iff, .m4a, .m4b, .mid, .midi, .mp3, .mpa, .mpc, .oga, .ogg, .ra, .ram, .snd, .wav, .wma
{{CompatUnknown}} {{CompatNo}} {{CompatNo}}
accept=video/* {{CompatVersionUnknown}} {{CompatGeckoDesktop("2.0")}}
Filters for the following video file extensions: .avi, .divx, .flv, .m4v, .mkv, .mov, .mp4, .mpeg, .mpg, .ogm, .ogv, .ogx, .rm, .rmvb, .smil, .webm, .wmv, .xvid
{{CompatUnknown}} {{CompatNo}} {{CompatNo}}
accept=image/* {{CompatVersionUnknown}} {{CompatGeckoDesktop("2.0")}}
Filters for the following image file extensions: .jpe, .jpg, .jpeg, .gif, .png, .bmp, .ico, .svg, .svgz, .tif, .tiff, .ai, .drw, .pct, .psp, .xcf, .psd, .raw
{{CompatUnknown}} {{CompatNo}} {{CompatNo}}
accesskey 1.0 {{CompatVersionUnknown}} 6 1.0 {{CompatUnknown}}
mozactionhint {{CompatNo}} {{CompatGeckoDesktop("2.0")}} {{CompatNo}} {{CompatNo}} {{CompatNo}}
autocomplete 17.0 {{CompatGeckoDesktop("2.0")}} {{CompatNo}} 9.6 5.2
autofocus 5.0 {{CompatGeckoDesktop("2.0")}} 10 9.6 5.0
checked 1.0 {{CompatGeckoDesktop("1.7 or earlier")}} 2 1.0 1.0
disabled 1.0 {{CompatGeckoDesktop("1.7 or earlier")}} 6 1.0 1.0
form 9.0 {{CompatGeckoDesktop("2.0")}} {{CompatUnknown}} 10.62 {{CompatUnknown}}
formaction 9.0 {{CompatGeckoDesktop("2.0")}} 10 10.62 5.2
formenctype 9.0 {{CompatGeckoDesktop("2.0")}} 10 10.62 {{CompatUnknown}}
formmethod 9.0 {{CompatGeckoDesktop("2.0")}} 10 10.62 5.2
formnovalidate 5.0 (in 6.0 only worked with HTML5 doctype, validation support in 7.0 was disabled and re-enabled in 10.0) {{CompatGeckoDesktop("2.0")}} 10 10.62 {{CompatUnknown}}
formtarget 9.0 {{CompatGeckoDesktop("2.0")}} 10 10.62 5.2
height 1.0 {{CompatNo}} {{CompatUnknown}} 1.0 {{CompatUnknown}}
inputmode {{CompatNo}} {{CompatNo}} {{CompatNo}} {{CompatNo}} {{CompatNo}}
list 20.0 {{CompatGeckoDesktop("2.0")}} 10 9.6 {{CompatNo}}
max 5.0 {{CompatNo}}
{{unimplemented_inline(556010)}}
{{CompatUnknown}} 10.62 {{CompatUnknown}}
maxlength 1.0 {{CompatGeckoDesktop("1.7")}} 2 1.0 1.0
min 5.0

{{CompatNo}}
{{unimplemented_inline(556010)}}

{{CompatUnknown}} 10.62 {{CompatUnknown}}
multiple 1.0 (supported for type=file and type=email as of 5.0) {{CompatGeckoDesktop("1.9.2")}} for type=file
{{unimplemented_inline}} for type=email
10 1.0 (10.62 support for type=file and as of 11.01 type=email) {{CompatUnknown}}
name 1.0 {{CompatGeckoDesktop("1.7 or earlier")}} 2 1.0 1.0
pattern 5.0 {{CompatGeckoDesktop("2.0")}} 10 9.6 {{CompatNo}}
placeholder 10.0 {{CompatGeckoDesktop("2.0")}} 10 11.00 5.0
readonly 1.0 {{CompatGeckoDesktop("1.7 or earlier")}} 6 (missing for type of checkbox, radio) 1.0 1.0
required 5.0 (support for select element as of 10) {{CompatGeckoDesktop("2.0")}} 10 9.6 {{CompatNo}}
size 1.0 {{CompatGeckoDesktop("1.7 or earlier")}} 2 1.0 1.0
spellcheck 10.0 {{CompatGeckoDesktop("1.9.2")}} 10 11.0 4.0
src 1.0 {{CompatGeckoDesktop("1.7 or earlier")}} 2 1.0 1.0
step 6.0 {{CompatNo}}
{{unimplemented_inline(556009)}}
10 10.62 5.0
tabindex 1.0 {{CompatGeckoDesktop("1.7 or earlier")}} 6 (elements with tabindex > 0 are not navigated) {{CompatVersionUnknown}} {{CompatUnknown}}
Feature Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support {{CompatVersionUnknown}} {{CompatGeckoMobile("2.0")}} {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}}
type {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}}
type=button {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}}
type=checkbox {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}}
type=color {{CompatUnknown}} {{CompatNo}} {{CompatUnknown}} {{CompatVersionUnknown}} {{CompatUnknown}}
type=date {{CompatNo}} {{CompatNo}} {{CompatNo}} 10.62 5.0
type=datetime {{CompatNo}} {{CompatNo}} {{CompatNo}} 10.62 {{CompatVersionUnknown}}
type=datetime-local {{CompatNo}} {{CompatNo}} {{CompatNo}} 10.62 {{CompatVersionUnknown}}
type=email {{CompatUnknown}} {{CompatGeckoMobile("2.0")}} {{CompatUnknown}} {{CompatVersionUnknown}} 3.1 (no validation but gives a specific keyboard)
type=file {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}}
type=hidden {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}}
type=image {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}}
type=month {{CompatNo}} {{CompatNo}} {{CompatNo}} 10.62 {{CompatVersionUnknown}}
type=number 2.3 (no validation but gives a specific keyboard) {{CompatNo}} {{CompatUnknown}} {{CompatVersionUnknown}} 4.0 (no validation but gives a specific keyboard)
type=password {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}}
type=radio {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}}
type=range {{CompatUnknown}} {{CompatNo}} {{CompatUnknown}} {{CompatVersionUnknown}} 5.0
type=reset {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}}
type=search {{CompatUnknown}} {{CompatGeckoMobile("2.0")}} {{CompatUnknown}} 10.62 4.0
type=submit {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}}
type=tel 2.3 {{CompatGeckoMobile("2.0")}} {{CompatUnknown}} 10.62 3.1
type=text {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}}
type=time {{CompatNo}} {{CompatNo}} {{CompatNo}} 10.62 {{CompatVersionUnknown}}
type=url {{CompatUnknown}} {{CompatGeckoMobile("2.0")}} {{CompatUnknown}} 10.62 3.1 (no validation but gives a specific keyboard)
type=week {{CompatNo}} {{CompatNo}} {{CompatNo}} 10.62 {{CompatVersionUnknown}}
accept=[MIME type] {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}}
accept=audio/* {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}}
accept=image/* {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}}
accept=video/* {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}}
accesskey {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}}
autocomplete {{CompatUnknown}} {{CompatGeckoMobile("2.0")}} {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}}
autofocus 3.2 {{CompatGeckoMobile("2.0")}} {{CompatUnknown}} {{CompatVersionUnknown}} {{CompatUnknown}}
checked {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}}
disabled {{CompatVersionUnknown}} {{CompatGeckoMobile("2.0")}} {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}}
form {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}}
formaction {{CompatUnknown}} {{CompatGeckoMobile("2.0")}} {{CompatUnknown}} 10.62 5.0
formenctype {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}}
formmethod {{CompatUnknown}} {{CompatGeckoMobile("2.0")}} {{CompatUnknown}} 10.62 5.0
formnovalidate {{CompatUnknown}} {{CompatGeckoMobile("2.0")}} {{CompatUnknown}} 10.62 {{CompatUnknown}}
formtarget {{CompatUnknown}} {{CompatGeckoMobile("2.0")}} {{CompatUnknown}} 10.62 5.0
height {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}}
list {{CompatNo}} {{CompatGeckoMobile("2.0")}} {{CompatUnknown}} {{CompatVersionUnknown}} {{CompatUnknown}}
max {{CompatUnknown}} {{CompatNo}} {{bug("556010")}} {{CompatUnknown}} 10.62 {{CompatUnknown}}
maxlength {{CompatVersionUnknown}} {{CompatGeckoMobile("2.0")}} {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}}
min {{CompatUnknown}} {{CompatNo}} {{bug("556010")}} {{CompatUnknown}} 10.62 {{CompatUnknown}}
multiple {{CompatUnknown}} {{CompatVersionUnknown}} {{CompatUnknown}} {{CompatVersionUnknown}} {{CompatUnknown}}
name {{CompatVersionUnknown}} {{CompatGeckoMobile("2.0")}} {{CompatVersionUnknown}} {{CompatVersionUnknown}} 1.0
pattern {{CompatUnknown}} {{CompatGeckoMobile("2.0")}} {{CompatUnknown}} {{CompatVersionUnknown}} {{CompatUnknown}}
placeholder 2.3 {{CompatGeckoMobile("2.0")}} {{CompatUnknown}} 11.10 4
readonly {{CompatVersionUnknown}} {{CompatGeckoMobile("2.0")}} {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}}
required {{CompatUnknown}} {{CompatVersionUnknown}} {{CompatUnknown}} {{CompatVersionUnknown}} {{CompatUnknown}}
size {{CompatVersionUnknown}} {{CompatGeckoMobile("2.0")}} {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}}
spellcheck {{CompatUnknown}} {{CompatGeckoMobile("2.0")}} {{CompatUnknown}} 11.0 {{CompatUnknown}}
src {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}}
step {{CompatUnknown}} {{CompatNo}} {{bug("556009")}} {{CompatUnknown}} 10.62 {{CompatUnknown}}
tabindex {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}}

Gecko notes

{{h3_gecko_minversion("Image capture from cameras", "9.0")}}

Starting in Gecko 9.0 {{geckoRelease("9.0")}}, Firefox for Android lets users capture images using their camera and upload them, without having to leave the browser. Web developers can implement this feature by simply specifying setting the accept attribute's value to "image/*" on their file input, like this:

<input type="file" accept="image/*">

See also

  • Other form-related elements: {{HTMLElement("form")}}, {{HTMLElement("button")}}, {{HTMLElement("datalist")}}, {{HTMLElement("legend")}}, {{HTMLElement("label")}}, {{HTMLElement("select")}}, {{HTMLElement("optgroup")}}, {{HTMLElement("option")}}, {{HTMLElement("textarea")}}, {{HTMLElement("keygen")}}, {{HTMLElement("fieldset")}}, {{HTMLElement("output")}}, {{HTMLElement("progress")}} and {{HTMLElement("meter")}}.
  • Cross-browser HTML5 placeholder text
  • {{domxref("HTMLInputElement")}}

Revision Source

<h2 id="Summary">Summary</h2>
<p>The <strong>HTML <code>&lt;input&gt;</code> element</strong> is used to create interactive controls for web-based forms.</p>
<ul class="htmlelt">
  <li><dfn><a href="/en-US/docs/HTML/Content_categories" title="HTML/Content_categories">Content categories</a></dfn> <a href="/en-US/docs/HTML/Content_categories#Flow_content" title="HTML/Content categories#Flow content">Flow content</a>, listed, submittable, resettable, form-associated element, <a href="/en-US/docs/HTML/Content_categories#Phrasing_content" title="HTML/Content categories#Phrasing content">phrasing content</a>.<br />
    If the {{htmlattrxref("type", "input")}} has not the <code>hidden</code> value, labellable element, palpable content.</li>
  <li><dfn>Permitted content</dfn> None, this is a void element.</li>
  <li><dfn>Tag omission</dfn> Must have a start tag and must not have an end tag.</li>
  <li><dfn>Permitted parent elements</dfn> Any element that accepts <a href="/en-US/docs/HTML/Content_categories#Phrasing_content" title="HTML/Content_categories#Phrasing_content">phrasing content</a>.</li>
  <li><dfn>DOM interface</dfn> {{domxref("HTMLInputElement")}}</li>
</ul>
<h2 id="Attributes">Attributes</h2>
<p><span style="line-height: 21px;">This element includes the&nbsp;</span><a href="https://developer.mozilla.org/en-US/docs/HTML/Global_attributes" style="line-height: 21px;" title="HTML/Global attributes">global attributes</a><span style="line-height: 21px;">.</span></p>
<dl>
  <dt>
    {{htmlattrdef("type")}}</dt>
  <dd>
    The type of control to display. The default type is text, if this attribute is not specified. Possible values are:
    <ul>
      <li><code>button</code>: A push button with no default behavior.</li>
      <li><code>checkbox</code>: A check box. You must use the <strong>value</strong> attribute to define the value submitted by this item. Use the <strong>checked</strong> attribute to indicate whether this item is selected. You can also use the <strong>indeterminate</strong> attribute to indicate that the checkbox is in an indeterminate state (on most platforms, this draws a horizontal line across the checkbox).</li>
      <li><code>color</code>: {{HTMLVersionInline(5)}} A control for specifying a color.</li>
      <li><code>date</code>: {{HTMLVersionInline(5)}} A control for entering a date (year, month, and day, with no time).</li>
      <li><code>datetime</code>: {{HTMLVersionInline(5)}} A control for entering a date and time (hour, minute, second, and fraction of a second) based on UTC time zone.</li>
      <li><code>datetime-local</code>: {{HTMLVersionInline(5)}} A control for entering a date and time, with no time zone.</li>
      <li><code>email</code>: {{HTMLVersionInline(5)}} A field for editing an e-mail address. The {{cssxref(":valid")}} and {{cssxref(":invalid")}} CSS pseudo-classes are applied as appropriate.</li>
      <li><code>file</code>: A control that lets the user select a file. Use the <strong>accept</strong> attribute to define the types of files that the control can select.</li>
      <li><code>hidden</code>: A control that is not displayed, but whose value is submitted to the server.</li>
      <li><code>image</code>: A graphical submit button. You must use the <strong>src</strong> attribute to define the source of the image and the <strong>alt</strong> attribute to define alternative text. You can use the <strong>height</strong> and <strong>width</strong> attributes to define the size of the image in pixels.</li>
      <li><code>month</code>: {{HTMLVersionInline(5)}} A control for entering a month and year, with no time zone.</li>
      <li><code>number</code>: {{HTMLVersionInline(5)}} A control for entering a floating point number.</li>
      <li><code>password</code>: A single-line text field whose value is obscured. Use the <strong>maxlength</strong> attribute to specify the maximum length of the value that can be entered.</li>
      <li><code>radio</code>: A radio button. You must use the <strong>value</strong> attribute to define the value submitted by this item. Use the <strong>checked</strong> attribute to indicate whether this item is selected by default. Radio buttons that have the same value for the <strong>name</strong> attribute are in the same "radio button group"; only one radio button in a group can be selected at one time.</li>
      <li><code>range</code>: {{HTMLVersionInline(5)}} A control for entering a number whose exact value is not important. This type control uses the following default values if the corresponding attributes are not specified:
        <ul>
          <li><code>min</code>: 0</li>
          <li><code>max</code>: 100</li>
          <li><code>value</code>: <code>min</code> + (<code>max</code>-<code>min</code>)/2, or <code>min</code> if <code>max</code> is less than <code>min</code></li>
          <li><code>step</code>: 1</li>
        </ul>
      </li>
      <li><code>reset</code>: A button that resets the contents of the form to default values.</li>
      <li><code>search</code>: {{HTMLVersionInline(5)}} A single-line text field for entering search strings; line-breaks are automatically removed from the input value.</li>
      <li><code>submit</code>: A button that submits the form.</li>
      <li><code>tel</code>: {{HTMLVersionInline(5)}} A control for entering a telephone number; line-breaks are automatically removed from the input value, but no other syntax is enforced. You can use attributes such as <strong>pattern</strong> and <strong>maxlength</strong> to restrict values entered in the control. The {{cssxref(":valid")}} and {{cssxref(":invalid")}} CSS pseudo-classes are applied as appropriate.</li>
      <li><code>text</code>: A single-line text field; line-breaks are automatically removed from the input value.</li>
      <li><code>time</code>: {{HTMLVersionInline(5)}} A control for entering a time value with no time zone.</li>
      <li><code>url</code>: {{HTMLVersionInline(5)}} A field for editing a URL. The user may enter a blank or invalid address. Line-breaks are automatically removed from the input value. You can use attributes such as <strong>pattern</strong> and <strong>maxlength</strong> to restrict values entered in the control. The {{cssxref(":valid")}} and {{cssxref(":invalid")}} CSS pseudo-classes are applied as appropriate.</li>
      <li><code>week</code>: {{HTMLVersionInline(5)}} A control for entering a date consisting of a week-year number and a week number with no time zone.</li>
    </ul>
  </dd>
  <dt>
    {{htmlattrdef("accept")}}</dt>
  <dd>
    If the value of the <strong>type</strong> attribute is <code>file</code>, this attribute indicates the types of files that the server accepts; otherwise it is ignored. The value must be a comma-separated list of unique content type specifiers:
    <ul>
      <li>A valid MIME type with no extensions</li>
      <li><code>audio/*</code> representing sound files {{HTMLVersionInline(5)}}</li>
      <li><code>video/*</code> representing video files {{HTMLVersionInline(5)}}</li>
      <li><code>image/*</code> representing image files {{HTMLVersionInline(5)}}</li>
    </ul>
  </dd>
  <dt>
    {{htmlattrdef("accesskey")}} {{HTMLVersionInline(4)}} only, {{obsoleteGeneric("inline", "HTML5")}}</dt>
  <dd>
    A single-character that the user can press to switch input focus to the control. This attribute is global in HTML5.</dd>
  <dt>
    {{htmlattrdef("mozactionhint")}} {{non-standard_inline}}</dt>
  <dd>
    Specifies an "action hint" used to determine how to label the enter key on mobile devices with virtual keyboards. Supported values are <code>go</code>, <code>done</code>, <code>next</code>, <code>search</code>, and <code>send</code>; these automatically get mapped to the appropriate string (and are case-insensitive).</dd>
  <dt>
    {{htmlattrdef("autocomplete")}} {{HTMLVersionInline(5)}}</dt>
  <dd>
    This attribute indicates whether the value of the control can be automatically completed by the browser. This attribute is ignored if the value of the <strong>type</strong> attribute is <code>hidden</code>, <code>checkbox</code>, <code>radio</code>, <code>file</code>, or a button type (<code>button</code>, <code>submit</code>, <code>reset</code>, <code>image</code>). Possible values are:
    <ul>
      <li><code>off</code>: The user must explicitly enter a value into this field for every use, or the document provides its own auto-completion method; the browser does not automatically complete the entry.</li>
      <li><code>on</code>: The browser can automatically complete the value based on values that the user has entered during previous uses.</li>
    </ul>
    <p>If the <strong>autocomplete</strong> attribute is not specified on an input element, then the browser uses the <strong>autocomplete</strong> attribute value of the <code>&lt;input&gt;</code> element's form owner. The form owner is either the <code>form</code> element that this <code>&lt;input&gt;</code> element is a descendant of or the form element whose <strong>id</strong> is specified by the <strong>form</strong> attribute of the input element. For more information, see the <code>autocomplete</code> attribute in {{HTMLElement("form")}}.</p>
  </dd>
  <dt>
    {{htmlattrdef("autofocus")}} {{HTMLVersionInline(5)}}</dt>
  <dd>
    This Boolean attribute lets you specify that a form control should have input focus when the page loads, unless the user overrides it, for example by typing in a different control. Only one form element in a document can have the <strong>autofocus</strong> attribute, which is a Boolean. It cannot be applied if the <strong>type</strong> attribute is set to <code>hidden</code> (that is, you cannot automatically set focus to a hidden control).</dd>
  <dt>
    {{htmlattrdef("autosave")}} {{HTMLVersionInline(5)}}</dt>
  <dd>
    This attribute should be defined as a unique value. If the value of the type attribute is <code>search</code>, previous search term values will persist in the dropdown across page load.</dd>
  <dt>
    {{htmlattrdef("checked")}}</dt>
  <dd>
    When the value of the <strong>type</strong> attribute is <code>radio</code> or <code>checkbox</code>, the presence of this Boolean attribute indicates that the control is selected by default; otherwise it is ignored.</dd>
  <dt>
    {{htmlattrdef("disabled")}}</dt>
  <dd>
    This Boolean attribute indicates that the form control is not available for interaction. In particular, the <code>click</code> event <a class="external" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/association-of-controls-and-forms.html#enabling-and-disabling-form-controls" title="http://www.whatwg.org/specs/web-apps/current-work/multipage/association-of-controls-and-forms.html#enabling-and-disabling-form-controls">will not be dispatched</a> on disabled controls. Also, a disabled control's value isn't submitted with the form.<br />
    <p>This attribute is ignored if the value of the <strong>type</strong> attribute is <code>hidden</code>.</p>
  </dd>
  <dt>
    {{htmlattrdef("form")}} {{HTMLVersionInline(5)}}</dt>
  <dd>
    The form element that the input element is associated with (its <em>form owner</em>). The value of the attribute must be an <strong>id</strong> of a {{HTMLElement("form")}} element in the same document. If this attribute is not specified, this <code>&lt;input&gt;</code> element must be a descendant of a {{HTMLElement("form")}} element. This attribute enables you to place <code>&lt;input&gt;</code> elements anywhere within a document, not just as descendants of their form elements. An input can only be associated with one form.</dd>
  <dt>
    {{htmlattrdef("formaction")}}{{HTMLVersionInline(5)}}</dt>
  <dd>
    The URI of a program that processes the information submitted by the input element, if it is a submit button or image. If specified, it overrides the {{htmlattrxref("action","form")}} attribute of the element's form owner.</dd>
  <dt>
    {{htmlattrdef("formenctype")}}{{HTMLVersionInline(5)}}</dt>
  <dd>
    If the input element is a submit button or image, this attribute specifies the type of content that is used to submit the form to the server. Possible values are:
    <ul>
      <li><code>application/x-www-form-urlencoded</code>: The default value if the attribute is not specified.</li>
      <li><code>multipart/form-data</code>: Use this value if you are using an {{HTMLElement("input")}} element with the {{htmlattrxref("type","input")}} attribute set to <code>file</code>.</li>
      <li><code>text/plain</code></li>
    </ul>
    <p>If this attribute is specified, it overrides the {{htmlattrxref("enctype","form")}} attribute of the element's form owner.</p>
  </dd>
  <dt>
    {{htmlattrdef("formmethod")}}{{HTMLVersionInline(5)}}</dt>
  <dd>
    If the input element is a submit button or image, this attribute specifies the HTTP method that the browser uses to submit the form. Possible values are:
    <ul>
      <li><code>post</code>: The data from the form is included in the body of the form and is sent to the server.</li>
      <li><code>get</code>: The data from the form are appended to the <strong>form</strong> attribute URI, with a '?' as a separator, and the resulting URI is sent to the server. Use this method when the form has no side-effects and contains only ASCII characters.</li>
    </ul>
    <p>If specified, this attribute overrides the {{htmlattrxref("method","form")}} attribute of the element's form owner.</p>
  </dd>
  <dt>
    {{htmlattrdef("formnovalidate")}}{{HTMLVersionInline(5)}}</dt>
  <dd>
    If the input element is a submit button or image, this Boolean attribute specifies that the form is not to be validated when it is submitted. If this attribute is specified, it overrides the {{htmlattrxref("novalidate","form")}} attribute of the element's form owner.</dd>
  <dt>
    {{htmlattrdef("formtarget")}}{{HTMLVersionInline(5)}}</dt>
  <dd>
    If the input element is a submit button or image, this attribute is a name or keyword indicating where to display the response that is received after submitting the form. This is a name of, or keyword for, a <em>browsing context</em> (for example, tab, window, or inline frame). If this attribute is specified, it overrides the {{htmlattrxref("target", "form")}} attribute of the elements's form owner. The following keywords have special meanings:
    <ul>
      <li>_<code>self</code>: Load the response into the same browsing context as the current one. This value is the default if the attribute is not specified.</li>
      <li><code>_blank</code>: Load the response into a new unnamed browsing context.</li>
      <li><code>_parent</code>: Load the response into the parent browsing context of the current one. If there is no parent, this option behaves the same way as <code>_self</code>.</li>
      <li><code>_top</code>: Load the response into the top-level browsing context (that is, the browsing context that is an ancestor of the current one, and has no parent). If there is no parent, this option behaves the same way as <code>_self</code>.</li>
    </ul>
  </dd>
  <dt>
    {{htmlattrdef("height")}} {{HTMLVersionInline(5)}}</dt>
  <dd>
    If the value of the <strong>type</strong> attribute is <code>image</code>, this attribute defines the height of the image displayed for the button.</dd>
  <dt>
    {{htmlattrdef("inputmode")}} {{HTMLVersionInline(5)}}</dt>
  <dd>
    A hint to the browser for which keyboard to display. This attribute applies when the value of the <strong>type</strong> attribute is text, password, email, or url. Possible values are:
    <ul>
      <li><code>verbatim</code>: Alphanumeric, non-prose content such as usernames and passwords.</li>
      <li><code>latin</code>: Latin-script input in the user's preferred language with typing aids such as text prediction enabled. For human-to-computer communication such as search boxes.</li>
      <li><code>latin-name</code>: As <em>latin</em>, but for human names.</li>
      <li><code>latin-prose</code>: As <em>latin</em>, but with more aggressive typing aids. For human-to-human communication such as instant messaging for email.</li>
      <li><code>full-width-latin</code>: As <em>lating-prose</em>, but for the user's secondary languages.</li>
      <li><code>kana</code>: Kana or romaji input, typically hiragana input, using full-width characters, with support for converting to kanji. Intended for Japanese text input.</li>
      <li><code>katakana</code>: Katakana input, using full-width characters, with support for converting to kanji. Intended for Japanese text input.</li>
      <li><code>numeric</code>: Numeric input, including keys for the digits 0 to 9, the user's preferred thousands separator character, and the character for indicating negative numbers. Intended for numeric codes, e.g. credit card numbers. For actual numbers, prefer using &lt;input type="number"&gt;</li>
      <li><code>tel</code>: Telephone input, including asterisk and pound key. Use &lt;input type="tel"&gt; if possible instead.</li>
      <li><code>email</code>: Email input. Use &lt;input type="email"&gt; if possible instead.</li>
      <li><code>url</code>: URL input. Use &lt;input type="url"&gt; if possible instead.</li>
    </ul>
  </dd>
  <dt>
    {{htmlattrdef("list")}} {{HTMLVersionInline(5)}}</dt>
  <dd>
    Identifies a list of pre-defined options to suggest to the user. The value must be the <strong>id</strong> of a {{HTMLElement("datalist")}} element in the same document. The browser displays only options that are valid values for this input element. This attribute is ignored when the <strong>type</strong> attribute's value is <code>hidden</code>, <code>checkbox</code>, <code>radio</code>, <code>file</code>, or a button type.</dd>
  <dt>
    {{htmlattrdef("max")}} {{HTMLVersionInline(5)}}</dt>
  <dd>
    The maximum (numeric or date-time) value for this item, which must not be less than its minimum (<strong>min</strong> attribute) value.</dd>
  <dt>
    {{htmlattrdef("maxlength")}} {{HTMLVersionInline(5)}}</dt>
  <dd>
    If the value of the <strong>type</strong> attribute is <code>text</code>, <code>email</code>,<code>search</code>, <code>password</code>, <code>tel</code>, or <code>url</code>, this attribute specifies the maximum number of characters (in Unicode code points) that the user can enter; for other control types, it is ignored. It can exceed the value of the <strong>size</strong> attribute. If it is not specified, the user can enter an unlimited number of characters. Specifying a negative number results in the default behavior; that is, the user can enter an unlimited number of characters. The constraint is evaluated only when the value of the attribute has been changed.</dd>
  <dt>
    {{htmlattrdef("min")}} {{HTMLVersionInline(5)}}</dt>
  <dd>
    The minimum (numeric or date-time) value for this item, which must not be greater than its maximum (<strong>max</strong> attribute) value.</dd>
  <dt>
    {{htmlattrdef("multiple")}}{{HTMLVersionInline(5)}}</dt>
  <dd>
    This Boolean attribute indicates whether the user can enter more than one value. This attribute applies when the <strong>type</strong> attribute is set to <code>email</code> or <code>file</code>; otherwise it is ignored.</dd>
  <dt>
    {{htmlattrdef("name")}}</dt>
  <dd>
    The name of the control, which is submitted with the form data.</dd>
  <dt>
    {{htmlattrdef("pattern")}}{{HTMLVersionInline(5)}}</dt>
  <dd>
    A regular expression that the control's value is checked against. The pattern must match the entire value, not just some subset. Use the <strong>title</strong> attribute to describe the pattern to help the user. This attribute applies when the value of the <strong>type</strong> attribute is <code>text</code>, <code>search</code>, <code>tel</code>, <code>url</code> or <code>email</code>; otherwise it is ignored. The regular expression language is the same as JavaScript's. The pattern is not surrounded by forward slashes.</dd>
  <dt>
    {{htmlattrdef("placeholder")}} {{HTMLVersionInline(5)}}</dt>
  <dd>
    A hint to the user of what can be entered in the control . The placeholder text must not contain carriage returns or line-feeds. This attribute applies when the value of the <strong>type</strong> attribute is <code>text</code>, <code>search</code>, <code>tel</code>, <code>url</code> or <code>email</code>; otherwise it is ignored.
    <div class="note">
      <strong>Note:</strong> Do not use the <code>placeholder</code> attribute instead of a {{HTMLElement("label")}} element. Their purposes are different: the {{HTMLElement("label")}} attribute describes the role of the form element; that is, it indicates what kind of information is expected, the <code>placeholder</code> attribute is a hint about the format the content should take. There are cases in which the <code>placeholder</code> attribute is never displayed to the user, so the form must be understandable without it.</div>
  </dd>
  <dt>
    {{htmlattrdef("readonly")}}</dt>
  <dd>
    This Boolean attribute indicates that the user cannot modify the value of the control.
    <p>{{HTMLVersionInline(5)}} This attribute is ignored if the value of the <strong>type</strong> attribute is <code>hidden</code>, <code>range</code>, <code>color</code>, <code>checkbox</code>, <code>radio</code>, <code>file</code>, or a button type.</p>
  </dd>
  <dt>
    {{htmlattrdef("required")}} {{HTMLVersionInline(5)}}</dt>
  <dd>
    This attribute specifies that the user must fill in a value before submitting a form. It cannot be used when the <strong>type</strong> attribute is <code>hidden</code>, <code>image</code>, or a button type (<code>submit</code>, <code>reset</code>, or <code>button</code>). The {{cssxref(":optional")}} and {{cssxref(":required")}} CSS pseudo-classes will be applied to the field as appropriate.</dd>
  <dt>
    {{htmlattrdef("selectionDirection")}} {{HTMLVersionInline(5)}}</dt>
  <dd>
    The direction in which selection occurred. This is "forward" if the selection was made from left-to-right in an LTR locale or right-to-left in an RTL locale, or "backward" if the selection was made in the opposite direction. This can be "none" if the selection direction is unknown.</dd>
  <dt>
    {{htmlattrdef("size")}}</dt>
  <dd>
    The initial size of the control. This value is in pixels unless the value of the <strong>type</strong> attribute is <code>text</code> or <code>password</code>, in which case, it is an integer number of characters. Starting in HTML5, this attribute applies only when the <strong>type</strong> attribute is set to <code>text</code>, <code>search</code>, <code>tel</code>, <code>url</code>, <code>email</code>, or <code>password</code>; otherwise it is ignored. In addition, the size must be greater than zero. If you don't specify a size, a default value of 20 is used.</dd>
  <dt>
    {{htmlattrdef("spellcheck")}} {{HTMLVersionInline(5)}}</dt>
  <dd>
    Setting the value of this attribute to <code>true</code> indicates that the element needs to have its spelling and grammar checked. The value <code>default</code> indicates that the element is to act according to a default behavior, possibly based on the parent element's own <code>spellcheck</code> value. The value <code>false</code> indicates that the element should not be checked.</dd>
  <dt>
    {{htmlattrdef("src")}}</dt>
  <dd>
    If the value of the <strong>type</strong> attribute is <code>image</code>, this attribute specifies a URI for the location of an image to display on the graphical submit button; otherwise it is ignored.</dd>
  <dt>
    {{htmlattrdef("step")}} {{HTMLVersionInline(5)}}</dt>
  <dd>
    Works with the <strong>min</strong> and <strong>max</strong> attributes to limit the increments at which a numeric or date-time value can be set. It can be the string <code>any</code> or a positive floating point number. If this attribute is not set to <code>any</code>, the control accepts only values at multiples of the step value greater than the minimum.</dd>
  <dt>
    {{htmlattrdef("tabindex")}} element-specific in {{HTMLVersionInline(4)}}, global in {{HTMLVersionInline(5)}}</dt>
  <dd>
    The position of the element in the tabbing navigation order for the current document.</dd>
  <dt>
    {{htmlattrdef("usemap")}} {{HTMLVersionInline(4)}} only, {{obsoleteGeneric("inline", "HTML5")}}</dt>
  <dd>
    The name of a {{HTMLElement("map")}} element to as an image map.</dd>
  <dt>
    {{htmlattrdef("value")}}</dt>
  <dd>
    The initial value of the control. This attribute is optional except when the value of the <strong>type</strong> attribute is <code>radio</code> or <code>checkbox</code>.<br />
    Note that when reloading the page, Gecko and IE <a class="link-https" href="https://bugzilla.mozilla.org/show_bug.cgi?id=46845#c186" title="https://bugzilla.mozilla.org/show_bug.cgi?id=46845#c186">will ignore the value specified in the HTML source</a>, if the value was changed before the reload.</dd>
  <dt>
    {{htmlattrdef("width")}} {{HTMLVersionInline(5)}}</dt>
  <dd>
    If the value of the <strong>type</strong> attribute is <code>image</code>, this attribute defines the width of the image displayed for the button.</dd>
  <dt>
    {{htmlattrdef("x-moz-errormessage")}} {{non-standard_inline}}</dt>
  <dd>
    This Mozilla extension allows you to specify the error message to display when a field doesn't successfully validate.</dd>
</dl>
<p>&nbsp;</p>
<h2 id="Notes">Notes</h2>
<h3 id="File_inputs">File inputs</h3>
<div class="geckoVersionNote">
  <p>{{gecko_callout_heading("2.0")}}</p>
  <p>Starting in Gecko 2.0 {{geckoRelease("2.0")}}, calling the <code>click()</code> method on an {{HTMLElement("input")}} element of type file opens the file picker and lets the user select files. See <a href="/en-US/docs/Using_files_from_web_applications" title="Using files from web applications">Using files from web applications</a> for an example and more details.</p>
</div>
<p>You can't set the value of a file picker from a script; doing something like the following has no effect:</p>
<pre class="brush: js">
var e = getElementById("someFileInputElement");
e.value = "foo";
</pre>
<h3 id="Error_messages">Error messages</h3>
<p>If you want Firefox to present a custom error message when a field fails to validate, you can use the <code>x-moz-errormessage</code> attribute to do so:</p>
<pre class="brush: html">
&lt;input type="email" x-moz-errormessage="Please specify a valid email address."&gt;
</pre>
<p>Note, however, that this is not standard and will not have an effect on other browsers.</p>
<h2 id="Examples">Examples</h2>
<h3 id="A_simple_input_box">A simple input box</h3>
<pre class="brush: html">
&lt;!-- A basic input --&gt;
&lt;input type="text" name="input" value="Type here"&gt;
</pre>
<p><input name="input" type="text" value="Type here" /><img align="absmiddle" alt="" class="ife_marker" id="input_ife_marker_0" src="chrome://informenter/skin/marker.png" style="border: 0pt none; width: 14px; height: 19px; cursor: pointer; display: inline;" title="Max field length is unknown" /></p>
<h3 id="A_common_use-case_senario">A common use-case senario</h3>
<pre class="brush: html">
&lt;!-- A common form that includes input tags --&gt;
&lt;form action="getform.php" method="get"&gt;
    First name: &lt;input type="text" name="first_name" /&gt;&lt;br /&gt;
     Last name: &lt;input type="text" name="last_name" /&gt;&lt;br /&gt;
        E-mail: &lt;input type="email" name="user_email" /&gt;&lt;br /&gt;
&lt;input type="submit" value="Submit" /&gt;
&lt;/form&gt;
</pre>
<h3 id="Using_mozactionhint_on_Firefox_mobile">Using mozactionhint on Firefox mobile</h3>
<p>You can use the <a href="/en-US/docs/HTML/Element/Input#attr-mozactionhint" title="HTML/Element/Input#attr-mozactionhint"><code>mozactionhint</code></a> attribute to specify the text for the label of the enter key on the virtual keyboard when your form is rendered on Firefox mobile. For example, to have a "Next" label, you can do this:</p>
<pre class="brush: html">
&lt;input type="text" mozactionhint="next" name="sometext" /&gt;
</pre>
<p>The result is:</p>
<p><a href="/@api/deki/files/4970/=mozactionhint.png" title="mozactionhint.png"><img alt="mozactionhint.png" class="internal default" src="/@api/deki/files/4970/=mozactionhint.png?size=webview" style="width: 210px; height: 350px; border: 1px solid black;" /></a></p>
<h2 id="Specifications" name="Specifications">Specifications</h2>
<table class="standard-table">
  <thead>
    <tr>
      <th scope="col">Specification</th>
      <th scope="col">Status</th>
      <th scope="col">Comment</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>{{SpecName('HTML WHATWG', 'the-input-element.html#the-input-element', '&lt;input&gt;')}}</td>
      <td>{{Spec2('HTML WHATWG')}}</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>{{SpecName('HTML5 W3C', 'the-input-element.html#the-input-element', '&lt;input&gt;')}}</td>
      <td>{{Spec2('HTML5 W3C')}}</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>{{SpecName('HTML4.01', 'forms.html#h-17.4', '&lt;form&gt;')}}</td>
      <td>{{Spec2('HTML4.01')}}</td>
      <td>&nbsp;</td>
    </tr>
  </tbody>
</table>
<h2 id="Browser_compatibility">Browser compatibility</h2>
<p>{{CompatibilityTable}}</p>
<div id="compat-desktop">
  <table class="compat-table">
    <tbody>
      <tr>
        <th>Feature</th>
        <th>Chrome</th>
        <th>Firefox (Gecko)</th>
        <th>Internet Explorer</th>
        <th>Opera</th>
        <th>Safari</th>
      </tr>
      <tr>
        <td>Basic support</td>
        <td>1.0</td>
        <td>{{CompatGeckoDesktop("1.7 or earlier")}}</td>
        <td>2 or earlier</td>
        <td>1.0</td>
        <td>1.0</td>
      </tr>
      <tr>
        <td>type</td>
        <td>1.0</td>
        <td>{{CompatGeckoDesktop("1.7 or earlier")}}</td>
        <td>2</td>
        <td>1.0</td>
        <td>1.0</td>
      </tr>
      <tr>
        <td>type=button</td>
        <td>1.0</td>
        <td>{{CompatGeckoDesktop("1.7 or earlier")}}</td>
        <td>3</td>
        <td>1.0</td>
        <td>1.0</td>
      </tr>
      <tr>
        <td>type=checkbox</td>
        <td>1.0</td>
        <td>{{CompatGeckoDesktop("1.7 or earlier")}}<br />
          {{CompatGeckoDesktop("1.9.2")}} for <code>indeterminate</code> value</td>
        <td>2</td>
        <td>1.0</td>
        <td>1.0</td>
      </tr>
      <tr>
        <td>type=color</td>
        <td>21.0</td>
        <td>{{CompatNo}}<br />
          {{unimplemented_inline(547004)}}</td>
        <td>{{CompatNo}}</td>
        <td>11.01</td>
        <td>{{CompatNo}}</td>
      </tr>
      <tr>
        <td>type=date</td>
        <td>5.0 (recognized but no UI)</td>
        <td>{{CompatNo}}<br />
          {{unimplemented_inline(446510)}}</td>
        <td>{{CompatNo}}</td>
        <td>10.62</td>
        <td>{{CompatVersionUnknown}} (recognized but no UI)</td>
      </tr>
      <tr>
        <td>type=datetime</td>
        <td>5.0 (recognized but no UI)</td>
        <td>{{CompatNo}}<br />
          {{unimplemented_inline(446510)}}</td>
        <td>{{CompatNo}}</td>
        <td>10.62</td>
        <td>{{CompatVersionUnknown}} (recognized but no UI)</td>
      </tr>
      <tr>
        <td style="white-space: nowrap;">type=datetime-local</td>
        <td>5.0 (recognized but no UI)</td>
        <td>{{CompatNo}}<br />
          {{unimplemented_inline(446510)}}</td>
        <td>{{CompatNo}}</td>
        <td>10.62</td>
        <td>{{CompatVersionUnknown}} (recognized but no UI)</td>
      </tr>
      <tr>
        <td>type=email</td>
        <td>5.0</td>
        <td>{{CompatGeckoDesktop("2.0")}}</td>
        <td>10</td>
        <td>10.62</td>
        <td>{{CompatUnknown}}</td>
      </tr>
      <tr>
        <td>type=file</td>
        <td>1.0</td>
        <td>{{CompatGeckoDesktop("1.7 or earlier")}}</td>
        <td>3.02</td>
        <td>1.0</td>
        <td>1.0</td>
      </tr>
      <tr>
        <td>type=hidden</td>
        <td>1.0</td>
        <td>{{CompatGeckoDesktop("1.7 or earlier")}}</td>
        <td>2</td>
        <td>1.0</td>
        <td>1.0</td>
      </tr>
      <tr>
        <td>type=image</td>
        <td>1.0</td>
        <td>Gecko 2.0 only sends x and y coordinates when clicked, not longer the name/value of the element</td>
        <td>2</td>
        <td>1.0</td>
        <td>1.0</td>
      </tr>
      <tr>
        <td>type=month</td>
        <td>5.0 (recognized but no UI)</td>
        <td>{{CompatNo}}<br />
          {{unimplemented_inline(446510)}}</td>
        <td>{{CompatNo}}</td>
        <td>10.62</td>
        <td>{{CompatVersionUnknown}} (recognized but no UI)</td>
      </tr>
      <tr>
        <td>type=number</td>
        <td>6.0 (Localization in Chrome 11)</td>
        <td>{{CompatNo}}<br />
          {{unimplemented_inline(344616)}}</td>
        <td>10<br />
          (recognized but no UI)</td>
        <td>10.62</td>
        <td>{{CompatVersionUnknown}}</td>
      </tr>
      <tr>
        <td>type=password</td>
        <td>1.0</td>
        <td>{{CompatGeckoDesktop("1.7 or earlier")}}</td>
        <td>2</td>
        <td>1.0</td>
        <td>1.0</td>
      </tr>
      <tr>
        <td>type=radio</td>
        <td>1.0</td>
        <td>{{CompatGeckoDesktop("1.7 or earlier")}}<br />
          {{CompatGeckoDesktop("1.9.2")}} for <code>indeterminate</code> value</td>
        <td>2</td>
        <td>1.0</td>
        <td>1.0</td>
      </tr>
      <tr>
        <td>type=range</td>
        <td>5.0</td>
        <td>{{CompatNo}}<br />
          {{unimplemented_inline(344618)}}</td>
        <td>10</td>
        <td>10.62 (11.01 added support for a default value)</td>
        <td>{{CompatVersionUnknown}}</td>
      </tr>
      <tr>
        <td>type=reset</td>
        <td>1.0</td>
        <td>{{CompatGeckoDesktop("1.7 or earlier")}}</td>
        <td>2</td>
        <td>1.0</td>
        <td>1.0</td>
      </tr>
      <tr>
        <td>type=search</td>
        <td>5.0</td>
        <td>{{CompatGeckoDesktop("2.0")}}</td>
        <td>10</td>
        <td>11.01</td>
        <td>{{CompatVersionUnknown}}</td>
      </tr>
      <tr>
        <td>type=submit</td>
        <td>1.0</td>
        <td>{{CompatGeckoDesktop("1.7 or earlier")}}</td>
        <td>2</td>
        <td>1.0</td>
        <td>1.0</td>
      </tr>
      <tr>
        <td>type=tel</td>
        <td>5.0</td>
        <td>{{CompatGeckoDesktop("2.0")}}</td>
        <td>10</td>
        <td>11.01</td>
        <td>{{CompatUnknown}}</td>
      </tr>
      <tr>
        <td>type=text</td>
        <td>1.0</td>
        <td>{{CompatGeckoDesktop("1.7 or earlier")}}</td>
        <td>2</td>
        <td>1.0</td>
        <td>1.0</td>
      </tr>
      <tr>
        <td>type=time</td>
        <td>5.0 (recognized but no UI)</td>
        <td>{{CompatNo}}<br />
          {{unimplemented_inline(446510)}}</td>
        <td>{{CompatNo}}</td>
        <td>10.62</td>
        <td>{{CompatVersionUnknown}} (recognized but no UI)</td>
      </tr>
      <tr>
        <td>type=url</td>
        <td>5.0</td>
        <td>{{CompatGeckoDesktop("2.0")}}</td>
        <td>10</td>
        <td>10.62</td>
        <td>{{CompatUnknown}}</td>
      </tr>
      <tr>
        <td>type=week</td>
        <td>5.0 (recognized but no UI)</td>
        <td>{{CompatNo}}<br />
          {{unimplemented_inline(446510)}}</td>
        <td>{{CompatNo}}</td>
        <td>10.62</td>
        <td>{{CompatVersionUnknown}} (recognized but no UI)</td>
      </tr>
      <tr>
        <td>accept=[MIME type]</td>
        <td>8.0</td>
        <td>{{CompatGeckoDesktop("16.0")}}</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatNo}}</td>
        <td>{{CompatNo}}</td>
      </tr>
      <tr>
        <td>accept=audio/*</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatGeckoDesktop("2.0")}}<br />
          Filters for the following audio file extensions: .aac, .aif, .flac, .iff, .m4a, .m4b, .mid, .midi, .mp3, .mpa, .mpc, .oga, .ogg, .ra, .ram, .snd, .wav, .wma</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatNo}}</td>
        <td>{{CompatNo}}</td>
      </tr>
      <tr>
        <td>accept=video/*</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatGeckoDesktop("2.0")}}<br />
          Filters for the following video file extensions: .avi, .divx, .flv, .m4v, .mkv, .mov, .mp4, .mpeg, .mpg, .ogm, .ogv, .ogx, .rm, .rmvb, .smil, .webm, .wmv, .xvid</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatNo}}</td>
        <td>{{CompatNo}}</td>
      </tr>
      <tr>
        <td>accept=image/*</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatGeckoDesktop("2.0")}}<br />
          Filters for the following image file extensions: .jpe, .jpg, .jpeg, .gif, .png, .bmp, .ico, .svg, .svgz, .tif, .tiff, .ai, .drw, .pct, .psp, .xcf, .psd, .raw</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatNo}}</td>
        <td>{{CompatNo}}</td>
      </tr>
      <tr>
        <td>accesskey</td>
        <td>1.0</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>6</td>
        <td>1.0</td>
        <td>{{CompatUnknown}}</td>
      </tr>
      <tr>
        <td>mozactionhint</td>
        <td>{{CompatNo}}</td>
        <td>{{CompatGeckoDesktop("2.0")}}</td>
        <td>{{CompatNo}}</td>
        <td>{{CompatNo}}</td>
        <td>{{CompatNo}}</td>
      </tr>
      <tr>
        <td>autocomplete</td>
        <td>17.0</td>
        <td>{{CompatGeckoDesktop("2.0")}}</td>
        <td>{{CompatNo}}</td>
        <td>9.6</td>
        <td>5.2</td>
      </tr>
      <tr>
        <td>autofocus</td>
        <td>5.0</td>
        <td>{{CompatGeckoDesktop("2.0")}}</td>
        <td>10</td>
        <td>9.6</td>
        <td>5.0</td>
      </tr>
      <tr>
        <td>checked</td>
        <td>1.0</td>
        <td>{{CompatGeckoDesktop("1.7 or earlier")}}</td>
        <td>2</td>
        <td>1.0</td>
        <td>1.0</td>
      </tr>
      <tr>
        <td>disabled</td>
        <td>1.0</td>
        <td>{{CompatGeckoDesktop("1.7 or earlier")}}</td>
        <td>6</td>
        <td>1.0</td>
        <td>1.0</td>
      </tr>
      <tr>
        <td>form</td>
        <td>9.0</td>
        <td>{{CompatGeckoDesktop("2.0")}}</td>
        <td>{{CompatUnknown}}</td>
        <td>10.62</td>
        <td>{{CompatUnknown}}</td>
      </tr>
      <tr>
        <td>formaction</td>
        <td>9.0</td>
        <td>{{CompatGeckoDesktop("2.0")}}</td>
        <td>10</td>
        <td>10.62</td>
        <td>5.2</td>
      </tr>
      <tr>
        <td>formenctype</td>
        <td>9.0</td>
        <td>{{CompatGeckoDesktop("2.0")}}</td>
        <td>10</td>
        <td>10.62</td>
        <td>{{CompatUnknown}}</td>
      </tr>
      <tr>
        <td>formmethod</td>
        <td>9.0</td>
        <td>{{CompatGeckoDesktop("2.0")}}</td>
        <td>10</td>
        <td>10.62</td>
        <td>5.2</td>
      </tr>
      <tr>
        <td>formnovalidate</td>
        <td>5.0 (in 6.0 only worked with HTML5 doctype, validation support in 7.0 was disabled and re-enabled in 10.0)</td>
        <td>{{CompatGeckoDesktop("2.0")}}</td>
        <td>10</td>
        <td>10.62</td>
        <td>{{CompatUnknown}}</td>
      </tr>
      <tr>
        <td>formtarget</td>
        <td>9.0</td>
        <td>{{CompatGeckoDesktop("2.0")}}</td>
        <td>10</td>
        <td>10.62</td>
        <td>5.2</td>
      </tr>
      <tr>
        <td>height</td>
        <td>1.0</td>
        <td>{{CompatNo}}</td>
        <td>{{CompatUnknown}}</td>
        <td>1.0</td>
        <td>{{CompatUnknown}}</td>
      </tr>
      <tr>
        <td>inputmode</td>
        <td>{{CompatNo}}</td>
        <td>{{CompatNo}}</td>
        <td>{{CompatNo}}</td>
        <td>{{CompatNo}}</td>
        <td>{{CompatNo}}</td>
      </tr>
      <tr>
        <td>list</td>
        <td>20.0</td>
        <td>{{CompatGeckoDesktop("2.0")}}</td>
        <td>10</td>
        <td>9.6</td>
        <td>{{CompatNo}}</td>
      </tr>
      <tr>
        <td>max</td>
        <td>5.0</td>
        <td>{{CompatNo}}<br />
          {{unimplemented_inline(556010)}}</td>
        <td>{{CompatUnknown}}</td>
        <td>10.62</td>
        <td>{{CompatUnknown}}</td>
      </tr>
      <tr>
        <td>maxlength</td>
        <td>1.0</td>
        <td>{{CompatGeckoDesktop("1.7")}}</td>
        <td>2</td>
        <td>1.0</td>
        <td>1.0</td>
      </tr>
      <tr>
        <td>min</td>
        <td>5.0</td>
        <td>
          <p>{{CompatNo}}<br />
            {{unimplemented_inline(556010)}}</p>
        </td>
        <td>{{CompatUnknown}}</td>
        <td>10.62</td>
        <td>{{CompatUnknown}}</td>
      </tr>
      <tr>
        <td>multiple</td>
        <td>1.0 (supported for type=file and type=email as of 5.0)</td>
        <td>{{CompatGeckoDesktop("1.9.2")}} for <strong>type</strong>=file<br />
          {{unimplemented_inline}} for <strong>type</strong>=email</td>
        <td>10</td>
        <td>1.0 (10.62 support for type=file and as of 11.01 type=email)</td>
        <td>{{CompatUnknown}}</td>
      </tr>
      <tr>
        <td>name</td>
        <td>1.0</td>
        <td>{{CompatGeckoDesktop("1.7 or earlier")}}</td>
        <td>2</td>
        <td>1.0</td>
        <td>1.0</td>
      </tr>
      <tr>
        <td>pattern</td>
        <td>5.0</td>
        <td>{{CompatGeckoDesktop("2.0")}}</td>
        <td>10</td>
        <td>9.6</td>
        <td>{{CompatNo}}</td>
      </tr>
      <tr>
        <td>placeholder</td>
        <td>10.0</td>
        <td>{{CompatGeckoDesktop("2.0")}}</td>
        <td>10</td>
        <td>11.00</td>
        <td>5.0</td>
      </tr>
      <tr>
        <td>readonly</td>
        <td>1.0</td>
        <td>{{CompatGeckoDesktop("1.7 or earlier")}}</td>
        <td>6 (missing for <strong>type</strong> of <code>checkbox</code>, <code>radio</code>)</td>
        <td>1.0</td>
        <td>1.0</td>
      </tr>
      <tr>
        <td>required</td>
        <td>5.0 (support for select element as of 10)</td>
        <td>{{CompatGeckoDesktop("2.0")}}</td>
        <td>10</td>
        <td>9.6</td>
        <td>{{CompatNo}}</td>
      </tr>
      <tr>
        <td>size</td>
        <td>1.0</td>
        <td>{{CompatGeckoDesktop("1.7 or earlier")}}</td>
        <td>2</td>
        <td>1.0</td>
        <td>1.0</td>
      </tr>
      <tr>
        <td>spellcheck</td>
        <td>10.0</td>
        <td>{{CompatGeckoDesktop("1.9.2")}}</td>
        <td>10</td>
        <td>11.0</td>
        <td>4.0</td>
      </tr>
      <tr>
        <td>src</td>
        <td>1.0</td>
        <td>{{CompatGeckoDesktop("1.7 or earlier")}}</td>
        <td>2</td>
        <td>1.0</td>
        <td>1.0</td>
      </tr>
      <tr>
        <td>step</td>
        <td>6.0</td>
        <td>{{CompatNo}}<br />
          {{unimplemented_inline(556009)}}</td>
        <td>10</td>
        <td>10.62</td>
        <td>5.0</td>
      </tr>
      <tr>
        <td>tabindex</td>
        <td>1.0</td>
        <td>{{CompatGeckoDesktop("1.7 or earlier")}}</td>
        <td>6 (elements with tabindex &gt; 0 are not navigated)</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatUnknown}}</td>
      </tr>
    </tbody>
  </table>
</div>
<div id="compat-mobile">
  <table class="compat-table">
    <tbody>
      <tr>
        <th>Feature</th>
        <th>Android</th>
        <th>Firefox Mobile (Gecko)</th>
        <th>IE Mobile</th>
        <th>Opera Mobile</th>
        <th>Safari Mobile</th>
      </tr>
      <tr>
        <td>Basic support</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatGeckoMobile("2.0")}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
      </tr>
      <tr>
        <td>type</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
      </tr>
      <tr>
        <td>type=button</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
      </tr>
      <tr>
        <td>type=checkbox</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
      </tr>
      <tr>
        <td>type=color</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatNo}}</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatUnknown}}</td>
      </tr>
      <tr>
        <td>type=date</td>
        <td>{{CompatNo}}</td>
        <td>{{CompatNo}}</td>
        <td>{{CompatNo}}</td>
        <td>10.62</td>
        <td>5.0</td>
      </tr>
      <tr>
        <td>type=datetime</td>
        <td>{{CompatNo}}</td>
        <td>{{CompatNo}}</td>
        <td>{{CompatNo}}</td>
        <td>10.62</td>
        <td>{{CompatVersionUnknown}}</td>
      </tr>
      <tr>
        <td style="white-space: nowrap;">type=datetime-local</td>
        <td>{{CompatNo}}</td>
        <td>{{CompatNo}}</td>
        <td>{{CompatNo}}</td>
        <td>10.62</td>
        <td>{{CompatVersionUnknown}}</td>
      </tr>
      <tr>
        <td style="white-space: nowrap;">type=email</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatGeckoMobile("2.0")}}</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>3.1 (no validation but gives a specific keyboard)</td>
      </tr>
      <tr>
        <td style="white-space: nowrap;">type=file</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatUnknown}}</td>
      </tr>
      <tr>
        <td style="white-space: nowrap;">type=hidden</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
      </tr>
      <tr>
        <td style="white-space: nowrap;">type=image</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
      </tr>
      <tr>
        <td style="white-space: nowrap;">type=month</td>
        <td>{{CompatNo}}</td>
        <td>{{CompatNo}}</td>
        <td>{{CompatNo}}</td>
        <td>10.62</td>
        <td>{{CompatVersionUnknown}}</td>
      </tr>
      <tr>
        <td style="white-space: nowrap;">type=number</td>
        <td>2.3 (no validation but gives a specific keyboard)</td>
        <td>{{CompatNo}}</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>4.0 (no validation but gives a specific keyboard)</td>
      </tr>
      <tr>
        <td style="white-space: nowrap;">type=password</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
      </tr>
      <tr>
        <td style="white-space: nowrap;">type=radio</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
      </tr>
      <tr>
        <td style="white-space: nowrap;">type=range</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatNo}}</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>5.0</td>
      </tr>
      <tr>
        <td style="white-space: nowrap;">type=reset</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
      </tr>
      <tr>
        <td style="white-space: nowrap;">type=search</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatGeckoMobile("2.0")}}</td>
        <td>{{CompatUnknown}}</td>
        <td>10.62</td>
        <td>4.0</td>
      </tr>
      <tr>
        <td style="white-space: nowrap;">type=submit</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
      </tr>
      <tr>
        <td style="white-space: nowrap;">type=tel</td>
        <td>2.3</td>
        <td>{{CompatGeckoMobile("2.0")}}</td>
        <td>{{CompatUnknown}}</td>
        <td>10.62</td>
        <td>3.1</td>
      </tr>
      <tr>
        <td style="white-space: nowrap;">type=text</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
      </tr>
      <tr>
        <td style="white-space: nowrap;">type=time</td>
        <td>{{CompatNo}}</td>
        <td>{{CompatNo}}</td>
        <td>{{CompatNo}}</td>
        <td>10.62</td>
        <td>{{CompatVersionUnknown}}</td>
      </tr>
      <tr>
        <td style="white-space: nowrap;">type=url</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatGeckoMobile("2.0")}}</td>
        <td>{{CompatUnknown}}</td>
        <td>10.62</td>
        <td>3.1 (no validation but gives a specific keyboard)</td>
      </tr>
      <tr>
        <td style="white-space: nowrap;">type=week</td>
        <td>{{CompatNo}}</td>
        <td>{{CompatNo}}</td>
        <td>{{CompatNo}}</td>
        <td>10.62</td>
        <td>{{CompatVersionUnknown}}</td>
      </tr>
      <tr>
        <td>accept=[MIME type]</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatUnknown}}</td>
      </tr>
      <tr>
        <td>accept=audio/*</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatUnknown}}</td>
      </tr>
      <tr>
        <td>accept=image/*</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatUnknown}}</td>
      </tr>
      <tr>
        <td>accept=video/*</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatUnknown}}</td>
      </tr>
      <tr>
        <td>accesskey</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatUnknown}}</td>
      </tr>
      <tr>
        <td>autocomplete</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatGeckoMobile("2.0")}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
      </tr>
      <tr>
        <td>autofocus</td>
        <td>3.2</td>
        <td>{{CompatGeckoMobile("2.0")}}</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatUnknown}}</td>
      </tr>
      <tr>
        <td>checked</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
      </tr>
      <tr>
        <td>disabled</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatGeckoMobile("2.0")}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
      </tr>
      <tr>
        <td>form</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatUnknown}}</td>
      </tr>
      <tr>
        <td>formaction</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatGeckoMobile("2.0")}}</td>
        <td>{{CompatUnknown}}</td>
        <td>10.62</td>
        <td>5.0</td>
      </tr>
      <tr>
        <td>formenctype</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatUnknown}}</td>
      </tr>
      <tr>
        <td>formmethod</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatGeckoMobile("2.0")}}</td>
        <td>{{CompatUnknown}}</td>
        <td>10.62</td>
        <td>5.0</td>
      </tr>
      <tr>
        <td>formnovalidate</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatGeckoMobile("2.0")}}</td>
        <td>{{CompatUnknown}}</td>
        <td>10.62</td>
        <td>{{CompatUnknown}}</td>
      </tr>
      <tr>
        <td>formtarget</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatGeckoMobile("2.0")}}</td>
        <td>{{CompatUnknown}}</td>
        <td>10.62</td>
        <td>5.0</td>
      </tr>
      <tr>
        <td>height</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatUnknown}}</td>
      </tr>
      <tr>
        <td>list</td>
        <td>{{CompatNo}}</td>
        <td>{{CompatGeckoMobile("2.0")}}</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatUnknown}}</td>
      </tr>
      <tr>
        <td>max</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatNo}} {{bug("556010")}}</td>
        <td>{{CompatUnknown}}</td>
        <td>10.62</td>
        <td>{{CompatUnknown}}</td>
      </tr>
      <tr>
        <td>maxlength</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatGeckoMobile("2.0")}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
      </tr>
      <tr>
        <td>min</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatNo}} {{bug("556010")}}</td>
        <td>{{CompatUnknown}}</td>
        <td>10.62</td>
        <td>{{CompatUnknown}}</td>
      </tr>
      <tr>
        <td>multiple</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatUnknown}}</td>
      </tr>
      <tr>
        <td>name</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatGeckoMobile("2.0")}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>1.0</td>
      </tr>
      <tr>
        <td>pattern</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatGeckoMobile("2.0")}}</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatUnknown}}</td>
      </tr>
      <tr>
        <td>placeholder</td>
        <td>2.3</td>
        <td>{{CompatGeckoMobile("2.0")}}</td>
        <td>{{CompatUnknown}}</td>
        <td>11.10</td>
        <td>4</td>
      </tr>
      <tr>
        <td>readonly</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatGeckoMobile("2.0")}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
      </tr>
      <tr>
        <td>required</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatUnknown}}</td>
      </tr>
      <tr>
        <td>size</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatGeckoMobile("2.0")}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
      </tr>
      <tr>
        <td>spellcheck</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatGeckoMobile("2.0")}}</td>
        <td>{{CompatUnknown}}</td>
        <td>11.0</td>
        <td>{{CompatUnknown}}</td>
      </tr>
      <tr>
        <td>src</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatUnknown}}</td>
      </tr>
      <tr>
        <td>step</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatNo}} {{bug("556009")}}</td>
        <td>{{CompatUnknown}}</td>
        <td>10.62</td>
        <td>{{CompatUnknown}}</td>
      </tr>
      <tr>
        <td>tabindex</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatUnknown}}</td>
      </tr>
    </tbody>
  </table>
</div>
<h3 id="Gecko_notes">Gecko notes</h3>
<p>{{h3_gecko_minversion("Image capture from cameras", "9.0")}}</p>
<p>Starting in Gecko 9.0 {{geckoRelease("9.0")}}, Firefox for Android lets users capture images using their camera and upload them, without having to leave the browser. Web developers can implement this feature by simply specifying setting the <code>accept</code> attribute's value to "image/*" on their <code>file</code> input, like this:</p>
<p><code>&lt;input type="file" accept="image/*"&gt;</code></p>
<h2 id="See_also">See also</h2>
<ul>
  <li>Other form-related elements: {{HTMLElement("form")}}, {{HTMLElement("button")}}, {{HTMLElement("datalist")}}, {{HTMLElement("legend")}}, {{HTMLElement("label")}}, {{HTMLElement("select")}}, {{HTMLElement("optgroup")}}, {{HTMLElement("option")}}, {{HTMLElement("textarea")}}, {{HTMLElement("keygen")}}, {{HTMLElement("fieldset")}}, {{HTMLElement("output")}}, {{HTMLElement("progress")}} and {{HTMLElement("meter")}}.</li>
  <li><a class="external" href="http://webdesignerwall.com/tutorials/cross-browser-html5-placeholder-text" title="http://webdesignerwall.com/tutorials/cross-browser-html5-placeholder-text">Cross-browser HTML5 placeholder text</a></li>
  <li>{{domxref("HTMLInputElement")}}</li>
</ul>
Revert to this revision