Easy Tutorial
❮ Att Source Media Ev Onresize ❯

HTML <button> form Attribute

HTML <button> Tag

Example

A submit button located outside the form (but still part of the form):


Browser Support

All major browsers support the form attribute except Internet Explorer.


Definition and Usage

The form attribute specifies which form 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.

❮ Att Source Media Ev Onresize ❯