Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML button formmethod attribute

HTML

HTML button Tag Reference HTML

Try it »


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Internet Explorer 10, Firefox, Opera, Chrome, and Safari support the formmethod attribute.

**Note:** Internet Explorer 9 and earlier IE versions do not support the formmethod attribute.


Definition and Usage

The formmethod attribute specifies the HTTP method used to send the form data. The formmethod attribute overrides the form element's method attribute.

The formmethod attribute must be used with type="submit".

The form-data can be sent in the following ways:

Using the "get" method:

Using the "post" method:


Differences between HTML 4.01 and HTML5

The formmethod attribute is new in HTML 5.


Syntax