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

<input type="text" />

By , About.com Guide

<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

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

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

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

All rights reserved.