HTML INPUT TYPES

<input type=""> in HTML defines the kind of data an input field accepts. Common input types include:

TypeDescription
textSingle-line text input
passwordHidden text for passwords
emailEmail address input with validation
numberNumeric input with up/down controls
telTelephone number input
urlWebsite URL input
searchSearch field
dateDate picker
timeTime picker
datetime-localDate and time picker
monthMonth and year picker
weekWeek picker
colorColor picker
rangeSlider control
checkboxCheck box
radioRadio button
fileFile upload
hiddenHidden field
submitSubmit button
resetReset button
buttonGeneric button
imageImage submit button

Examples

<input type="text" placeholder="Enter your name">

<input type="email" placeholder="Enter your email">

<input type="password" placeholder="Enter password">

<input type="date">

<input type="checkbox"> I agree

<input type="submit" value="Submit">

If you need a complete list with browser support or validation attributes for each type, let me know.

Comments

Popular posts from this blog

HTML | HTML INTRODUCTION

HTML ELEMENTS

HTML RESPONSIVE WEB DESIGN