HTML Input Types

HTML Input Types Here are the different input types you can use in HTML: <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">

Input Type Text

<input type="text"> defines a single-line text input field:

Output:

<input type="password"> defines a password field:

Output:

Input Type Submit

Output:

<input type="reset"> defines a reset button that will reset all form values to their default values:

Output:

<input type="radio"> defines a radio button.

Output:

<input type="checkbox"> defines a checkbox.

Output:

<input type="button"> defines a button:

Output:

The <input type="color"> is used for input fields that should contain a color.

Output:

The <input type="date"> is used for input fields that should contain a date.

Output: