Check out example codes for "forms in html". It will help you in understanding the concepts better.

Code Example 1

<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>

Code Example 2

<form action="/action_page.php">
  First name:<br>
  <input type="text" name="firstname" value="Mickey"><br>
  
  Last name:<br>
  <input type="text" name="lastname" value="Mouse"><br><br>
  
  <input type="submit" value="Submit">
</form>

Code Example 3

<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>

Html By Duco Defiant Dogfish on Feb 11 2020
<form action="/action_page.php">
  First name:<br>
  <input type="text" name="firstname" value="Mickey"><br>
  
  Last name:<br>
  <input type="text" name="lastname" value="Mouse"><br><br>
  
  <input type="submit" value="Submit">
</form>

Code Example 4

<form>

    <label for="fname">First name:</label><br>
  <input 
  type="text" id="fname" name="fname"><br>
  <label for="lname">Last 
  name:</label><br>
  <input type="text" id="lname" name="lname">
</form>

Code Example 5

<!-- Simple form which will send a POST request -->
<form action="" method="post">
  <label for="POST-name">Name:</label>
  <input id="POST-name" type="text" name="name">
  <input type="submit" value="Save">
</form>


<!-- Form that sends a GET request -->
<!-- In this case, the information will appear in the url address bar,
corresponding to each attribute "name", of the "input" tag (don't use this
in case of input password!) -->
<form action="" method="get">
  <label for="GET-name">Name:</label>
  <input id="GET-name" type="text" name="name">
  <input type="submit" value="Save">
</form>


<!-- Form with fieldset, legend, and label -->
<form action="" method="post">
  <fieldset>
    <legend>Title</legend>
    <input type="radio" name="radio" id="radio"> <label for="radio">Click me</label>
  </fieldset>
</form>


<!-- How to submit directly to email? -->
<form action="mailto:[email protected]" method="post" enctype="text/plain">
	<label for="get_email">Your email: </label>
    <input id="get_email" type="email" name="email" value="" /><br /><br />

  	<label for="subject">Subject Matter: </label>
    <input id="subject" type="text" name="subject" value="" /><br /><br />
 
    <label for="body_msg">Your Message: </label> <br />
    <textarea name="body_msg" cols="30" rows="10">

Code Example 6

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

Learn ReactJs, React Native from akashmittal.com