HTML GET and POST Methods
We can specify different HTTP methods for a form submission in HTML form. The two main methods that we can specify are as follows:
- GET Method
- POST Method
Syntax
The transport method is specified in the form element, using the method attribute.
<form action=”target” method=”type”>
Method type can be GET or POST. The information is sent to the target page specified in the action attribute.
GET
To specify the GET method
<form action=”target” method=”GET”>
POST
To specify the POST method
<form action=”target” method=”POST”>
—
HTML Tutorials
HTML Tutorials on this website:
https://www.testingdocs.com/html-tutorials/
https://www.w3.org/TR/html401/intro/intro.html