Advertisement
Home Open Editor ❯

HTML <input> type Attribute

Example

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

Try this code ❯

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" />


Advertisement

Home Open Editor ❯
Advertisement