Input Element in HTML

the <input> element is an input field where the users can enter information or Data. <input>elements are placed inside a element. An <input> element can be represented in various ways, depending on the type attribute.

Example:

<html>
 <body>
  <form>
   Your Name: <input type="text"><br>
   Address: <input type="text" ><br>
   City : <input type="text" ><br>
    Country: <input type="text" ><br>
   </form>
 </body>
</html>

Output:

Your Name:
Address:
City :
Country:

List of HTML Input Types

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

LEAVE A REPLY

Please enter your comment!
Please enter your name here