Code and Output for input:

Code:

    <!DOCTYPE html>
    <html>
    <head>
      <title>HTML Example</title>
    </head>
    <body>
      <h1>The input element</h1>

      <form>
        <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>
        <input type="submit" value="Submit">
      </form>
    </body>
    </html>
  

Output:

The input element