HTML 5: The Markup Language (ARIA Edition)

8. Forms attributes # T

This section defines attributes that are common to a number of forms elements.

autocomplete = "on" | "off" #
Specifies whether the element represents an input control for which a UA is meant to store the value entered by the user (so that the UA can prefill the form later).
autofocus = "autofocus" | "" #
Specifies that the element represents a control to which a UA is meant to give focus as soon as the document is loaded.
checked = "checked" | "" #
Specifies that the element represents a selected control.
disabled = "disabled" | "" #
Specifies that the element represents a disabled control.
form = idref #
Identifies a form with which to associate the element.
formaction = uri #
The form-submission action for the element.
formenctype = "application/x-www-form-urlencoded" | "multipart/form-data" | "text/plain" #
A MIME type with which a UA is meant to associate this element for form submission.
formmethod = "get" | "post" | "put" | "delete" #
The HTTP method with which a UA is meant to associate this element for form submission.
formnovalidate = "formnovalidate" | "" #
Specifies that the element represents a control whose value is not meant to be validated during form submission.
formtarget = browsing-context-name-or-keyword #
A browsing context or keyword that represents the target of the control.
list = idref #
Identifies a datalist with which to associate the element.
maxlength = integer.positive #
The maximum allowed value length of the element.
multiple = "multiple" | "" #
Specifies that the element allows multiple values.
name = string #
The name part of the name/value pair associated with this element for the purposes of form submission.
pattern = pattern #
Specifies a regular expression against which a UA is meant to check the value of the control represented by its element.
placeholder = string #
A short hint (one word or a short phrase) intended to aid the user when entering data into the control represented by its element.
readonly = "readonly" | "" #
Specifies that element represents a control whose value is not meant to be edited.
required = "required" | "" #
Specifies that the element is a required part of form submission.
size = integer.positive #
The number of options meant to be shown by the control represented by its element.
step.float = "any" | float.positive #
Specifies the value granularity of the element’s value.
step.integer = "any" | integer.positive #
Specifies the value granularity of the element’s value.