A button located outside a form (but still a part of the form):
The form attribute specifies one or more forms the button belongs to.
The numbers in the table specify the first browser version that fully supports the attribute.
Attribute | |||||
---|---|---|---|---|---|
form | 10.0 | Not supported | 4.0 | 5.1 | 9.5 |
The form attribute is new in HTML5.
Value | Description |
---|---|
form_id | Specifies the form element the <button> element belongs to. The value of this attribute must be the id attribute of a <form> element in the same document. |