A text area located outside a form (but still a part of the form):
The form attribute specifies one or more forms the text area belongs to.
Attribute | |||||
---|---|---|---|---|---|
form | Yes | Not supported | Yes | Yes | Yes |
The form attribute is new in HTML5.
Value | Description |
---|---|
form_id | Specifies the form element the <textarea> element belongs to. The value of this attribute must be the id attribute of a <form> element in the same document. |