HTML 5: The Markup Language

formuser-submittable form # T

The form element represents a user-submittable form.

Content model #

Attribute model #

Element-specific attributes #

action = uri
The submission action for the form.
method = ( "get" | "post") | ( "put" | "delete")
The HTTP method with which a UA is meant to associate this element for form submission.
enctype = ( "application/x-www-form-urlencoded" | "multipart/form-data") | "text/plain"
A MIME type with which a UA is meant to associate the form contents for form submission.
accept-charset = charsetlist
Specifies the character encodings used for form submission.
novalidate = "novalidate" | ""
Specifies that the element represents a form that is not meant to be validated during form submission.
target = browsing-context-name-or-keyword
A browsing context or keyword that represents the target of the form.
autocomplete = "on" | "off"
Specifies whether the element represents a form for which by default a UA is meant to store the values entered into its input elements by the user (so that the UA can prefill the form later).

Assertions #

Tag omission #

A form element must have both a start tag and an end tag.

Permitted contexts #

Typical default display properties #

form {
display: block;
margin-top: 0em; }