

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to use the formmethod attribute in HTML?
The formmethod attribute is used to define the HTTP technique for sending form information. This method is usedwith input type submit a picture. It overrides the method attribute of HTML forms.
Example
You can try to run the following code to learn how to use the formmethod attribute in HTML.
<!DOCTYPE html> <html> <head> <title>HTML formmethod attribute</title> </head> <body> <form action=”/new.php” method="get"> Student Name<br><input type="text" name="name"/><br> Student Subject<br><input type="text" name="subject"/><br> <input type="submit" value="Submit"> <input type="submit" formmethod=”post” formaction=”/new2.php” value="Submit"> </form> </body> </html>
- Related Questions & Answers
- How to use the required attribute in HTML?
- How to use autocomplete attribute in HTML?
- How to use formnovalidate attribute in HTML?
- How to use formaction attribute in HTML?
- How to use formenctype attribute in HTML?
- How to use formtarget attribute in HTML?
- How to use list attribute in HTML?
- How to use multiple attribute in HTML?
- How to use pattern attribute in HTML?
- How to use placeholder attribute in HTML?
- How to use step attribute in HTML?
- HTML DOM Input Submit formMethod property
- How to use href attribute in HTML Page?
- How to use a novalidate attribute in HTML?
- Why do we use the novalidate attribute in HTML?
Advertisements