Connected: An Internet Encyclopedia
8.1.2.1. Text Field: INPUT TYPE=TEXT
Up:
Connected: An Internet Encyclopedia
Up:
Requests For Comments
Up:
RFC 1866
Up:
8. Forms
Up:
8.1. Form Elements
Up:
8.1.2. Input Field: INPUT
Prev: 8.1.2. Input Field: INPUT
Next: 8.1.2.2. Password Field: INPUT TYPE=PASSWORD
8.1.2.1. Text Field: INPUT TYPE=TEXT
8.1.2.1. Text Field: INPUT TYPE=TEXT
The default value of the TYPE attribute is `TEXT', indicating a
single line text entry field. (Use the <TEXTAREA> element for multi-
line text fields.)
Required attributes are:
- NAME
-
name for the form field corresponding to this element.
The optional attributes are:
- MAXLENGTH
-
constrains the number of characters that can be entered
into a text input field. If the value of MAXLENGTH is
greater the the value of the SIZE attribute, the field
should scroll appropriately. The default number of
characters is unlimited.
- SIZE
-
specifies the amount of display space allocated to this
input field according to its type. The default depends
on the user agent.
- VALUE
-
The initial value of the field.
For example:
<p>Street Address: <input name=street><br>
Postal City code: <input name=city size=16 maxlength=16><br>
Zip Code: <input name=zip size=10 maxlength=10 value="99999-9999"><br>
Next: 8.1.2.2. Password Field: INPUT TYPE=PASSWORD
Connected: An Internet Encyclopedia
8.1.2.1. Text Field: INPUT TYPE=TEXT