Name
<input type=text> — NN 2, 3, 4, 6 MSIE 2,3, 4, 5.5, 6 HTML 4.01 - WebTV Opera5
Synopsis
<input type=text> (no end tag)
Creates a text input element. This is the default input type, as well as the most useful and common.
Attributes
-
maxlength=number Specifies the maximum number of characters the user can input for this element. The default is an unlimited number of characters.
-
name=text Required. Specifies the name for the text input control. This name will be sent, along with the value, to the form-processing application.
-
size=number Specifies the size of the text-entry box (measured in number of characters) to be displayed for this element. Users can type entries that are longer than the space provided, causing the field to scroll to the right.
-
value=text Specifies the value that will initially be displayed in the text box.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access