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

Code Example 1

<input type="text" class="inputtext" placeholder="..." id="text1">

Code Example 2

<form 
    action="/action_page.php">

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

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

     
    <input type="submit" value="Submit">

    </form>

Code Example 3

<input type="text">
<input type="submit">
<input type="password">
<input type="button">
<input type="hidden">
<input type="number">

Code Example 4

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

Code Example 5

<input type="button">
<input type="checkbox">
<input type="color">
<input type="date">
<input type="datetime-local">
<input type="email">
<input type="file">
<input type="hidden">
<input type="image">
<input type="month">
<input type="number">
<input type="password">
<input type="radio">
<input type="range">
<input type="reset">
<input type="search">
<input type="submit">
<input type="tel">
<input type="text">
<input type="time">
<input type="url">
<input type="week">

Code Example 6

<label for="start-date">Starts on:</label>
<input type="date" id="start-date" name="start_date" />

Learn ReactJs, React Native from akashmittal.com