HTML
Example
A text area located outside the form (but still part of the form):
Try it »
Browser support





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