<htmlstart/>

HTML Input Types

HTML supports over 20 input types — text, email, password, date, file, and more.

Common Input Types

<!-- Text inputs -->
<input type="text"     placeholder="Full name">
<input type="email"    placeholder="Email address">
<input type="password" placeholder="Password">
<input type="url"      placeholder="https://example.com">
<input type="tel"      placeholder="+44 7700 900000">

<!-- Number and range -->
<input type="number" min="0" max="100" value="50">
<input type="range"  min="0" max="100" value="50">

<!-- Dates and times -->
<input type="date">
<input type="time">
<input type="datetime-local">
<input type="month">

<!-- Pickers -->
<input type="color" value="#D62828">
<input type="file"  accept="image/*">

<!-- Selection inputs -->
<input type="checkbox" id="agree"> <label for="agree">I agree</label>
<input type="radio"    name="plan" value="free"> Free
<input type="radio"    name="plan" value="pro">  Pro

<!-- Hidden / search / submit -->
<input type="hidden" name="token" value="abc123">
<input type="search" placeholder="Search...">
<input type="submit" value="Send">
<input type="reset"  value="Clear">

Input Type Reference

TypeShowsValidates
emailText keyboard + @Must contain @ and domain
numberNumeric keyboardNumbers only, respects min/max
dateNative date pickerValid date format
colorColor picker swatchHex color value
fileFile chooser buttonFile type if accept set
Use the correct type — mobile browsers show the matching keyboard (email shows @ key, number shows number pad) and browsers validate the format automatically.