-
Text-based inputs:
- Text:
<input type="text">
- Password:
<input type="password">
- Email:
<input type="email">
- Tel (Telephone number):
<input type="tel">
- URL:
<input type="url">
- Search:
<input type="search">
- Text:
-
Numeric inputs:
- Number:
<input type="number">
- Range:
<input type="range">
- Number:
-
Date and time inputs:
- Date:
<input type="date">
- Time:
<input type="time">
- Datetime-local:
<input type="datetime-local">
- Month:
<input type="month">
- Week:
<input type="week">
- Date:
-
Selection inputs:
- Radio button:
<input type="radio">
- Checkbox:
<input type="checkbox">
- Select:
<select><option value="value">Option</option></select>
- Radio button:
-
Action inputs:
- Submit button:
<input type="submit">
- Reset button:
<input type="reset">
- Button:
<input type="button">
- Submit button:
-
File input:
- File:
<input type="file">
- File:
-
Image input:
- Image:
<input type="image">
- Image:
-
Hidden input:
- Hidden:
<input type="hidden">
- Hidden:
-
Specialized inputs:
- Color:
<input type="color">
- Image:
<input type="image">
- Color:
-
Textarea:
- Textarea:
<textarea></textarea>
- Textarea:
-
Datetime inputs:
- Datetime:
<input type="datetime">
- Month:
<input type="month">
- Week:
<input type="week">
- Time:
<input type="time">
- Datetime-local:
<input type="datetime-local">
- Datetime:
-
Other inputs:
- Image:
<input type="image">
- Button (without default behavior):
<input type="button">
- Color:
<input type="color">
- Search:
<input type="search">
- Tel (Telephone number):
<input type="tel">
- URL:
<input type="url">
- Range:
<input type="range">
- File:
<input type="file">
- Hidden:
<input type="hidden">
- Week:
<input type="week">
- Image:
-
Textarea:
- Textarea:
<textarea></textarea>
- Textarea:
Choose the appropriate input type based on your data collection needs and user experience goals.