HTML form attribute
Example
An input field outside the form (but still part of the form):
Try it »
Browser support





Almost all major browsers support the form attribute, except Internet Explorer.
Definition and Usage
The form attribute specifies the one or more forms to which the element belongs.
Differences between HTML 4.01 and HTML5
The form attribute is new in HTML5.
Syntax
Attribute values
| Value | Description |
|---|---|
| form_id | Specifies the A space-separated list of ids of the one or more forms to which the element belongs. |
HTML tag