Articles → HTML → Forms In HTML
Forms In HTML
Purpose
Syntax
<form method="" action=""></form>
Action Attribute
Method Attribute
- Get → In the Get method client requests information from the server by sending parameters. Those parameters are appended with URI separated by a question mark (?).
- Post → Unlike Get (which appends parameters in URL), post sends the parameter in the body of the HTTP request. The parameters are not visible to users and therefore can be used to send sensitive information.
- Get
- Post
Example
<html>
<head>
<title>Form Demo</title>
</head>
<body>
<form method="get" action="Page1.html"></form>
</body>
</html>
Browser Support
Internet Explorer | Firefox | Chrome | Safari | Opera | Edge |
---|
Yes | Yes | Yes | Yes | Yes | Yes |