Site icon

HTML Form GET and POST Methods


In HTML form, we can specify different HTTP methods for a form submission. The two main methods that we can specify are as follows:


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.


To specify the GET method

<form action=”target” method=”GET”>


To specify the POST method

<form action=”target” method=”POST”>


HTML Tutorials

HTML Tutorials on this website:

More Information on HTML:

Exit mobile version