Cloud Cloud Cloud Cloud

The text Type

The Current State of HTML5 Forms

Let Wufoo do the hard work. Sign up for a free account and start making forms the easy way.

Live Demo





 


Firefox

Safari

Safari

Chrome

Opera

IE

Android

The Low Down

The text input type is used to provide a one-line plain text edit control for users to input a value.

  • The default type is text, displaying a single-line text field, if the type is set to text or if the attribute is not specified.
  • In addition to the type="text" attribute/value pair, valid attributes include the global attributes, autocompletedirnameinputmodelist,maxlengthminlengthpatternplaceholderreadonly,requiredsizevaluenamedisabled, and autofocus
  • If you omit the type attribute, include a value of the type attribute that is not supported by the browser (such as input type="color" in IE10), or misspell the value of the value of the type attribute, the default type="text" will show.
  • To encourage mobile devices to display a keyboard other than the default keyboard, employ the inputmode attribute.
  • To provide a list of available values, use the list attribute along with <datalist>.
Cloud Cloud Cloud Cloud

Let Wufoo do the hard work.

Sign up for a free account and start making forms the easy way.