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

Code Example 1

//HTML Textbox w/Getting Javascript Input:
<script>
  function getTextBox(){
    var k = document.getElemntById('myTextBox').value
    alert(k)
  }
</script>
<input type="text" id="myTextBox">
<button onclick="getTextBox()">Get Text Input</button>

Code Example 2

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

Code Example 3

<!-- A <textarea> tag (better for multi-line text)-->
<textarea cols="4" rows="5">
Some text inside the text box.  
See https://www.w3schools.com/tags/tag_textarea.asp

Code Example 4

<label for="name">Name:</label>
  <input type="text" id="name"><br><br>

Code Example 5

<input type="radio">Hi</input>

Code Example 6

<input type="email" name="name" id="id" placeholder="[email protected]" />

Learn ReactJs, React Native from akashmittal.com