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 are on (the default) and off.
enctype
How form data should be encoded for transmission. Valid values are application/x-www-form-urlencoded (the default), multipart/form-data, and text/plain.
method
How the form should be submitted. Valid values are get (the default) and post, which tell the browser to use one of those HTTP methods for the submission, and dialog 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.

Further information

The Web Design Academy Contact us

By form

By Phone

+44 (0)113 234 4611

By email

enquiries@thewebdesign.academy

By snail mail

Suite 3 15 South Parade Leeds LS1 5PQ United Kingdom