Web Design / HTML

  1. Home
  2. Computing & Technology
  3. Web Design / HTML

<input type="text" />

By Jennifer Kyrnin, About.com

<input type="text" /> Description:

The <input type="text" /> tag submits text to the form.

<input type="text" /> Web Browser Support:

<input type="text" /> Attributes:

<input type="text" /> Usage:

  • standard text field:
    <form>
    <input type="text" size="30" />
    </form>
  • default input field:
    <form>
    <input />
    </form>
  • pre-populated text field:
    <form>
    try to add to the sentence in the field<br />
    <input size="10" maxlength="20" value="type a long sentence" />
    </form>

<input type="text" /> Special Notes:

  • This is the most commonly used form input field.

More <input type="text" /> Information:

Return to the <input /> Element
Return to XHTML Element (HTML Tags) Library

Explore Web Design / HTML

About.com Special Features

Build Your Own Website

Step-by-step advice on how to do everything from choosing a Web host to promoting your content. More >

Connect Your Home Computers

Easy ways to connect two computers for networking purposes. More >

Web Design / HTML

  1. Home
  2. Computing & Technology
  3. Web Design / HTML

©2009 About.com, a part of The New York Times Company.

All rights reserved.