Hi everyone, In HTML has the methods. They get, post, put, head, delete, connect, options, and trace. So you can learn about them.

HTML Contents:

1. GET is a method used to retrieve information from the given server using a given URI. Requests using GET should only retrieve data and should have no other effect on the data.

Example

<!DOCTYPE html>
<html>
<head>
  <title>Get method<title>
</head>
<body>
<form action="/action_page.php" method="get" id="form1">
  <label for="fname">First name:</label>
  <input type="text" id="fname" name="fname">
  <br><br>
  <label for="lname">Last name:</label>
  <input type="text" id="lname" name="lname">
  <br><br>
  <input type="submit" value="Submit">
</form>
</body>
</html>

2. POST is a request method that is used to send data to the server, for example, customer information, file upload, etc. using HTML forms.

Example:

<!DOCTYPE html>
<html>
<head>
  <title>POST method<title>
</head>
<body>
<form action="/action_page.php" method="post" id="form1">
  <label for="fname">First name:</label>
  <input type="text" id="fname" name="fname">
  <br><br>
  <label for="lname">Last name:</label>
  <input type="text" id="lname" name="lname">
  <br><br>
  <input type="submit" value="Submit">
</form>
</body>
</html>

3. PUT is a method that replaces all current representations of the target resource with the uploaded content.

4. HEAD is a method the same as the GET method, but transfers the status line and header section only.

5. DELETE is a method that removes all current representations of the target resource given by a URI.

6. CONNECT is a method that establishes a tunnel to the server identified by a given URI.

7. OPTIONS is a method that describes the communication options for the target resource.

8. TRACE is a method that performs a message loop-back test along the path to the target resource.