This example contains a form with two submit buttons. The first submit button submits the form-data with method="get", and the second submits the form-data with method="post":
If you click on the submit buttons above, notice that the formmethod attribute overrides the HTML form's method attribute.
Click the "Try it" button to return the value of the formmethod attribute of the second submit button above.