HTML <input type="text">

❮ HTML <input> tag ❮ HTML <input> type attribute

Example

<input type="text" name="fname">

Meaning

The default value. provides single-line text field.

Line-breaks are automatically removed from the input value.

Additional Attributes


Standard Syntax

HTML: <input type="text">

XHTML: <input type="text" />



Browser Support




Status







❮ HTML <input> tag ❮ HTML <input> type attribute