The <form>
element
A part of a web page which represents a form that can be filled in and submitted by the user.
Full list of attributes
All the usual HTML global attributes are available
accept-charset
- A list of character encoding names that the browser can use to submit the form data in.
action
- The URI that the form data should be submitted to.
autocomplete
- Whether or not any
<input>
elements in this form should do autocompletion by default. Each<input>
element can override this individually. Valid values areon
(the default) andoff
. enctype
- How form data should be encoded for transmission. Valid values are
application/x-www-form-urlencoded
(the default),multipart/form-data
, andtext/plain
. method
- How the form should be submitted. Valid values are
get
(the default) andpost
, which tell the browser to use one of those HTTP methods for the submission, anddialog
which means the button should close its dialog box. name
- A name to identify this form within the collection of forms it's a part of.
novalidate
- If present then the browser will skip normal form validation before submission.
target
- Where the form submission should open a resulting page. By default, it will open in the same place as the original form, but this could redirect the results to a frame, for example.