HTML | <button> formmethod Attribute Last Updated : 20 Jul, 2022 Comments Improve Suggest changes Like Article Like Report 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: <button type="submit" formmethod="get|post"> Attribute values: GET: In the GET method, after the submission of the form, the form values will be visible in the address bar of the new browser tab. It has a limited size of about 3000 characters. It is only useful for non-secure data not for sensitive information. It has a default value.POST: In the post method, after the submission of the form, the form values will not be visible in the address bar of the new browser tab as it was visible in the GET method. It appends form data inside the body of the HTTP request. It has no size limitation. This method does not support bookmark the result. Example: This Example illustrate the use of formmethod Attribute in Button Element. html <!DOCTYPE html> <html> <head> <title> Button Formmethod attribute </title> </head> <body style="text-align: center"> <h1 style="color: green"> GeeksforGeeks </h1> <h4> HTML Button Formmethod Attribute </h4> <form action="#" method="post" enctype="multipart/form-data"> First name: <input type="text" name="fname"> <br><br> Last name: <input type="text" name="lname"> <br><br> Address: <input type="text" name="Address"> <br><br> <button type="submit" formmethod="GET"> submit using GET </button> <br> <br> <button type="submit" formenctype="text/plan" formmethod="POST"> submit using POST </button> </form> </body> </html> Output: Supported Browsers: The browsers supported by HTML <button> Formmethod attribute are listed below: Google Chrome 9.0Edge 12.0Internet Explorer 10.0Firefox 4.0Opera 15Safari Create Quiz Comment M manaschhabra2 Follow 0 Improve M manaschhabra2 Follow 0 Improve Article Tags : Web Technologies HTML HTML-Attributes Explore HTML BasicsHTML Introduction4 min readHTML Editors4 min readHTML Basics7 min readStructure & ElementsHTML Elements4 min readHTML Attributes7 min readHTML Headings3 min readHTML Paragraphs3 min readHTML Text Formatting4 min readHTML Block and Inline Elements3 min readHTML Charsets4 min readListsHTML Lists3 min readHTML Ordered Lists5 min readHTML Unordered Lists4 min readHTML Description Lists3 min readVisuals & MediaHTML Colors11 min readHTML Links Hyperlinks2 min readHTML Images7 min readHTML Favicon4 min readHTML Video4 min readLayouts & DesignsHTML Tables9 min readHTML Iframes4 min readHTML Layout4 min readHTML File Paths3 min readProjects & Advanced TopicsHTML Forms4 min readHTML5 Semantics5 min readHTML URL Encoding4 min readHTML Responsive Web Design11 min readTop 10 Projects For Beginners To Practice HTML and CSS Skills8 min readTutorial ReferencesHTML Tags - A to Z List5 min readHTML Attributes Complete Reference8 min readHTML Global Attributes5 min readHTML5 Complete Reference8 min readHTML5 MathML Complete Reference3 min readHTML DOM Complete Reference15+ min readHTML DOM Audio/Video Complete Reference2 min readSVG Element Complete Reference5 min readSVG Attribute Complete Reference8 min readSVG Property Complete Reference7 min readHTML Canvas Complete Reference4 min read Like