1. Computing & Technology

Discuss in my forum

<input type="text">

By , About.com Guide

INPUT Text Description:

The text INPUT tag places a text input field in your HTML forms. It is the standard input field and is used whenever the INPUT tag does not have a type attribute defined.

DTD: HTML5: <!doctype html>
HTML4 Strict: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
HTML4 Transitional or Loose: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

INPUT Text Web Browser Support:

HTML Versions

INPUT Text Attributes:

Global attributes, event attributes, and the input tag attributes. Plus: </p>

  • autocomplete
  • list
  • maxlength
  • pattern
  • placeholder
  • readonly
  • required
  • size
  • selectedOption
  • select()
  • selectionStart
  • selectionEnd
  • setSelectionRange()

INPUT Text Usage:

Standard text input tag

<form>
<input type="text">
</form>

See an example of a standard text input tag.

INPUT Text Special Notes:

This is the most commonly used input field. It is the default input field type, and most browsers will display a text field if they don't recognize the type of input field being requested.

More INPUT Text Information:

©2012 About.com. All rights reserved.

A part of The New York Times Company.