HTML | <button> formmethod Attribute (original) (raw)

Last Updated : 20 Jul, 2022

The HTML button formmethod Attribute is used to specify the HTTP method used to send data while submitting the form. There are two kinds of HTTP methods, which are GET and POST. This Attribute is only used with the Button type="submit".

Syntax:

Attribute values:

Example: This Example illustrate the use of formmethod Attribute in Button Element.

html `

Button Formmethod attribute

GeeksforGeeks

HTML Button Formmethod Attribute

First name:

Last name:

Address:

submit using GET

submit using POST

`

Output:

Supported Browsers: The browsers supported by HTML Formmethod attribute are listed below: