The html form element is used to create an HTML form for user input:

<form>
      ...
      form elements
      ...
 <form>

The <form> element is a container for a variety of input elements, such as: text fields, checkboxes, radio buttons, submit buttons, etc.

HTML <Input> tag

  • The <Input> tag specifies an input field where the user can enter data.
  • The <Input> element is the most important form element.
  • The <Input> element can be displayed in several ways, depending on the type attribute.
  • Different input types are bellow:

    • <Input type="text" (Defualt Value)>
    • <Input type="button">
    • <Input type="submit">
    • <Input type="checkbox">
    • <Input type="color">
    • <Input type="email">
    • <Input type="file">
    • <Input type="hidden">
    • <Input type="image">
    • <Input type="number">
    • <Input type="password">
    • <Input type="radio">
    • <Input type="range">
    • <Input type="url">
    • <Input type="reset">
    • <Input type="search">
    • <Input type="date">
    • <Input type="time">
    • <Input type="week">
    • <Input type="month">

Form with All Input Types