// html reference · 2026

HTML Input Types

A complete visual reference of every input type available in HTML — live and interactive.

22 Input types
5 Categories
100% Interactive
🚀 Create Free Account →
Aa

Text inputs

For collecting written data
Texttype="text"

The default single-line text field. Accepts any character.

<input type="text">
Passwordtype="password"

Masks the typed characters for sensitive input.

<input type="password">
Emailtype="email"

Validates email format. Shows email keyboard on mobile.

<input type="email">
URLtype="url"

Validates URL format. Expects http:// or https://.

<input type="url">
Teltype="tel"

Shows numeric keypad on mobile. No format validation by default.

<input type="tel">
Searchtype="search"

Styled as a search field. May show a clear button in some browsers.

<input type="search">
Textarea<textarea>

Multi-line text input. Resizable by the user. Not an input type but commonly grouped here.

<textarea rows="4"></textarea>
#

Number & range

For numeric values
Numbertype="number"

Numeric input with spinner controls. Supports min, max, and step.

<input type="number" min="1">
Rangetype="range"

A slider for selecting a value within a range. Great for settings.

60
<input type="range" min="0" max="100">
📅

Date & time

For temporal values
Datetype="date"

Date picker with calendar UI. Returns YYYY-MM-DD format.

<input type="date">
Timetype="time"

Time picker for hours and minutes. Returns HH:MM format.

<input type="time">
Datetime-localtype="datetime-local"

Combined date and time picker without timezone info.

<input type="datetime-local">
Monthtype="month"

Select a month and year. Returns YYYY-MM format.

<input type="month">
Weektype="week"

Select a specific week. Returns YYYY-W## format.

<input type="week">

Choice inputs

For selecting options
Checkboxtype="checkbox"

Toggle boolean values. Multiple checkboxes can be checked.

<input type="checkbox">
Radiotype="radio"

Select one option from a group. Uses the same name attribute to group them.

<input type="radio" name="plan">
Select<select>

Dropdown menu for selecting one option from a list.

<select><option>...</select>
Colortype="color"

Native color picker. Returns a hex value like #ff0000.

#e63946
<input type="color">

Actions & other

Buttons, file upload, hidden & more
Submittype="submit"

Submits the surrounding form. Default button in a form.

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

Resets all fields in the form to their default values.

<input type="reset" value="Reset">
Buttontype="button"

A clickable button with no default behavior. Controlled via JavaScript.

<input type="button" value="Click">
Filetype="file"

File upload picker. Use accept attribute to limit file types.

<input type="file" accept="image/*">
Hiddentype="hidden"

Not visible to users. Used to pass data like CSRF tokens or IDs with form submissions.

[hidden — not visible to user]
name="userId" value="42"
<input type="hidden" value="42">
Imagetype="image"

A graphical submit button. Uses an image instead of text.

<input type="image" src="btn.png">

🚀 Take Your HTML Forms Live

Now that you understand how HTML inputs work, you can start building real forms like Contact forms, Login systems, or Registration pages. But to make these forms accessible online, you’ll need a hosting service.

I personally recommend Hostinger because it’s beginner-friendly, fast, and affordable for students and developers starting out.

👉 Get started here and enjoy 20% OFF using the referral code:

https://www.hostinger.com?REFERRALCODE=NWV123 20% OFF

*Discount applied automatically when you register via this link.