Input Type: Overview

The most important element, used by forms, is the <input> element. This element can vary in many ways, depending on the types and attributes used.

Types:

  • button
  • checkbox
  • password
  • submit
  • radio
  • text

NEW Types:

  • color
  • date
  • datetime
  • datetime-local
  • email
  • month
  • number
  • range
  • search
  • tel
  • time
  • url
  • week

Attributes

  • disable
  • maxlength
  • readonly
  • size
  • value

NEW Attributes:

  • max
  • min
  • pattern
  • required
  • step

The new HTML5 types and attributes may not work in ALL browsers. Instead, they could end up being displayed as a TEXT input type.

Back button Table of Contents Next button