HTML
Try it »
Browser support





All other major browsers support the form attribute, except Internet Explorer.
Definition and Usage
The form attribute specifies which form or forms the button belongs to.
Differences between HTML 4.01 and HTML5
The form attribute is new in HTML5.
Syntax
Attribute values
| Value | Description |
|---|---|
| form_id | The id of the form the button belongs to. To reference more than one form, use a space-separated list. |
HTML