Articles → HTML → Forms In HTML

Forms In HTML






Purpose





Syntax


<form method="" action=""></form>



Action Attribute





Method Attribute










  1. 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 (?).
  2. 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.




  1. Get
  2. Post

Example


<html>
	<head>
		<title>Form Demo</title>
	</head>
	<body>
		<form method="get" action="Page1.html"></form>
	</body>
</html>



Browser Support


Internet ExplorerFirefoxChromeSafariOperaEdge
YesYesYesYesYesYes



Posted By  -  Karan Gupta
 
Posted On  -  Friday, November 4, 2016
 
Updated On  -  Sunday, November 26, 2017

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250