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

Code Example 1

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

<form>

  
 First name:<br>
  <input type="text" name="firstname"><br>

  
 Last name:<br>
  <input type="text" name="lastname">

 </form>

Code Example 3

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

Learn ReactJs, React Native from akashmittal.com