<input type="text" /> Description:
The <input type="text" /> tag submits text to the form.
<input type="text" /> Web Browser Support:
- Netscape 2, 3, 4, 6, 7
- Mozilla 1
- Firefox 1
- Internet Explorer 2, 3, 4, 5, 6
- Opera 3, 4, 5, 6, 7, 8
- Safari 1
- WebTV / MSNTV
- AvantGo Palm OS
- AvantGo Windows CE
- HTML 3.2, 4.0
- XHTML 1.0
XHTML Forms Module XHTML Intrinsic Events Module
<input type="text" /> Attributes:
- All the attributes of the input tag, plus:
- bgcolor (optional)
- disabled (optional)
- maxlength (optional)
- name (optional)
- readonly (optional) (HTML 4)
- size (optional)
- type="text"
- usestyle (optional) (WebTV)
- value (optional)
- width (optional) (WebTV)
<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

