<form>Baseline · Widely available
The <form> element contains interactive controls for submitting information.
Supported in all major browsers for at least 30 months — safe to use without fallbacks. Baseline since Jul 29, 2015. Widely available since Jan 29, 2018.
Browser support
DesktopChrome
1+Supportedsince Dec 11, 2008
Current: 155Edge
12+Supportedsince Jul 29, 2015
Current: 154Firefox
1+Supportedsince Nov 9, 2004
Current: 157Safari
1–2Not supported
3+Supportedsince Oct 26, 2007
Current: 27MobileChrome Android
18+Supportedsince Jun 27, 2012
Current: 155Firefox Android
4+Supportedsince Mar 29, 2011
Current: 157Safari iOS
1–1Not supported
2+Supportedsince Jul 11, 2008
Current: 27How to use
This feature is Baseline widely available — use it freely, no fallback needed.
Example
Full syntax and examples are on MDN: FormDataEvent.
Feature detection
JS · check before using
const el = document.createElement("form");
if (!(el instanceof HTMLUnknownElement)) {
// <form> is supported
}Sub-features
Support for each part of the feature (38). The overall table above shows when the whole feature works.
| Sub-feature | Chrome | Edge | Firefox | Safari | Chrome Android | Firefox Android | Safari iOS |
|---|---|---|---|---|---|---|---|
| FormDataEvent | 77 | 79 | 72 | 15 | 77 | 79 | 15 |
| FormDataEvent.FormDataEvent | 77 | 79 | 72 | 15 | 77 | 79 | 15 |
| FormDataEvent.formData | 77 | 79 | 72 | 15 | 77 | 79 | 15 |
| HTMLFormControlsCollection | 1 | 12 | 1 | 3 | 18 | 4 | 1 |
| HTMLFormControlsCollection.namedItem | 1 | 12 | 33 | 3 | 18 | 33 | 1 |
| HTMLFormElement | 1 | 12 | 1 | 3 | 18 | 4 | 1 |
| HTMLFormElement.acceptCharset | 1 | 12 | 1 | 3 | 18 | 4 | 1 |
| HTMLFormElement.action | 1 | 12 | 1 | 3 | 18 | 4 | 1 |
| HTMLFormElement.autocomplete | 14 | 12 | 4 | 6 | 18 | 4 | 6 |
| HTMLFormElement.elements | 1 | 12 | 1 | 3 | 18 | 4 | 1 |
| HTMLFormElement.encoding | 1 | 12 | 1 | 3 | 18 | 4 | 1 |
| HTMLFormElement.enctype | 1 | 12 | 1 | 3 | 18 | 4 | 1 |
| HTMLFormElement.formdata_event | 77 | 79 | 72 | 15 | 77 | 79 | 15 |
| HTMLFormElement.length | 1 | 12 | 1 | 3 | 18 | 4 | 1 |
| HTMLFormElement.method | 1 | 12 | 1 | 3 | 18 | 4 | 1 |
| HTMLFormElement.name | 1 | 12 | 1 | 3 | 18 | 4 | 1 |
| HTMLFormElement.noValidate | 4 | 12 | 4 | 5 | 18 | 4 | 4 |
| HTMLFormElement.rel | 108 | 108 | 111 | 15.4 | 108 | 111 | 15.4 |
| HTMLFormElement.relList | 108 | 108 | 111 | 15.4 | 108 | 111 | 15.4 |
| HTMLFormElement.requestSubmit | 76 | 79 | 75 | 16 | 76 | 79 | 16 |
Show 18 more
| Sub-feature | Chrome | Edge | Firefox | Safari | Chrome Android | Firefox Android | Safari iOS |
|---|---|---|---|---|---|---|---|
| HTMLFormElement.reset | 1 | 12 | 1 | 3 | 18 | 4 | 1 |
| HTMLFormElement.reset_event | 1 | 12 | 6 | 3 | 18 | 6 | 1 |
| HTMLFormElement.submit | 1 | 12 | 1 | 3 | 18 | 4 | 1 |
| HTMLFormElement.submit_event | 1 | 12 | 1 | 3 | 18 | 4 | 1 |
| HTMLFormElement.target | 1 | 12 | 1 | 3 | 18 | 4 | 1 |
| SubmitEvent | 81 | 81 | 75 | 15 | 81 | 79 | 15 |
| SubmitEvent.SubmitEvent | 81 | 81 | 75 | 15 | 81 | 79 | 15 |
| SubmitEvent.submitter | 81 | 81 | 75 | 15.4 | 81 | 79 | 15.4 |
| form | 1 | 12 | 1 | 3 | 18 | 4 | 2 |
| form.accept-charset | 1 | 12 | 1 | 3 | 18 | 4 | 2 |
| form.action | 1 | 12 | 1 | 3 | 18 | 4 | 2 |
| form.autocomplete | 14 | 12 | 4 | 6 | 18 | 4 | 6 |
| form.enctype | 1 | 12 | 1 | 3 | 18 | 4 | 2 |
| form.method | 1 | 12 | 1 | 3 | 18 | 4 | 2 |
| form.name | 1 | 12 | 1 | 3 | 18 | 4 | 2 |
| form.novalidate | 10 | 12 | 4 | 10.1 | 18 | 4 | 10.3 |
| form.rel | 108 | 108 | 111 | 15.4 | 108 | 111 | 15.4 |
| form.target | 1 | 12 | 1 | 3 | 18 | 4 | 2 |