what do html forms do code example

Example 1: html form

<form action="/action.php">
  <label for="fname">First name:</label><br>
  <input type="text" id="fname" value="Mike"><br><br>
  <label for="lname">Last name:</label><br>
  <input type="text" id="lname" value="Walker"><br><br>
  <input type="submit" value="Submit">
</form>

Example 2: posting with forms html

<form method="POST" action="INSERT WHERE YOU'RE SENDING THE DATA TO HERE">
	<input type="text" name="INSERT DATA KEY NAME HERE"> <!-- You don't have to have this line --> 
</form>

Example 3: forms in html

<html>
<form action= "your site" method = "post/get">
  </form>
</html>

Example 4: html form

Check this:
https://codepen.io/DevLorenzo/pen/wvzNPKz

Tags:

Misc Example