Main Index |
Top Of Tree |
Tag Index |
Tag History
- What is it?
- TEXT is a TYPE attribute value to the INPUT tag for FORMs. It
indicates a single line text entry field.
- Attributes
- Maxlength
- 2
| 3 | 3.2
| IE1 | M2A1
| N1
- Required? No
- Description:
This optional attribute constrains the number of characters that can
be entered into the text field by the user. If the MAXLENGTH attribute
is larger than the optional SIZE attribute, the text field should
scroll as necessary.
- Values: Positive integers.
- Name
- 2
| 3 | 3.2
| IE1 | M2A1
| N1
- Required? Yes
- Description:
This is a required attribute that associates a symbolic name to the
field for submittal to the form processing script.
- Values: Alphanumeric characters.
- Size
- 2
| 3 | 3.2
| IE1 | M2A1
| N1
- Required? No
- Description:
This attribute controls the amount of display space allocated to
the text field.
- Values: Positive integers.
- Type
- 2
| 3 | 3.2
| IE1 | M2A1
| N1
- Required? No*
- Description:
* This is the TYPE attribute for
this INPUT mechanism. The TYPE attribute is not required - if
no TYPE attribute is used at all in the INPUT tag, it defaults to
TYPE=TEXT.
- Values: TEXT
- Value
- 2
| 3 | 3.2
| IE1 | M2A1
| N1
- Required? No
- Description:
An optional attribute that is a default string to be initially
displayed in the text field. It is passed to the form processing
script paired with the NAME attribute upon submittal.
- Values: Alphanumeric characters.
Event Handler Attributes
- [For more information on Event Handlers, please see the
SCRIPT page.]
- onBlur
- 2
| 3 | 3.2
| IE3B1 | M
| N2B3
- Required? No
- Description:
A blur Event Handler executes Script code when a Text field in
a form loses focus.
- Values: Script statements or an
external function call.
- onChange
- 2
| 3 | 3.2
| IE3B1 | M
| N2B3
- Required? No
- Description:
A change Event Handler executes Script code when a Text field loses
focus and its value has been modified. This Event Handler is used to
validate data after it is modified by a user.
- Values: Script statements or an
external function call.
- onFocus
- 2
| 3 | 3.2
| IE3B1 | M
| N2B3
- Required? No
- Description:
A focus Event Handler executes Script code when a Text field
receives input focus by tabbing with the keyboard or clicking
with the mouse. Selecting within a field results in a onSelect
event, not a onFocus event.
- Values: Script statements or an
external function call.
- onSelect
- 2
| 3 | 3.2
| IE3B1 | M
| N2B3
- Required? No
- Description:
A select Event Handler executes Script code when a user selects
some of the text within a Text field.
- Values: Script statements or an
external function call.
Style Sheet Attributes
[More on Cascading Style Sheets]
- Class
- 2 | 3
| 3.2 | IE3B1
| M | N4B2
- Required? No
- Description:
This represents an assigned semantic classification grouping(s) for the
current tag.
- Values:
Given as a comma separated list of alphanumeric characters. Class names
may contain spaces (multiple consecutive spaces treated as a single
space.)
- ID
- 2 | 3
| 3.2 | IE3B1
| M | N4B2
- Required? No
- Description:
This assigns an alpha-numeric identifier that is unique
to this tag instance. Style sheets may use this attribute to reference
the current instance of this tag. Hyperlinks may also use this identifier
to serve as a destination.
- Values:
An alphanumeric string - initial character must be a letter followed
by alphabetic characters, digits, "-" or "."
characters. The allowable set of alpha-characters is restricted to the
A-Z and a-z set.
- Style
- 2 | 3
| 3.2 | IE3B1
| M | N4B3
- Required? No
- Description:
This attribute is a text string that provides rendering style
information for the current tag.
- Values:
Please see the description of
inline styles for more
information on how to use this attribute and its
possible values.
- Example
- <form>
<input
TYPE="text"
VALUE="Bloo was here"
NAME="text1"
SIZE="10"
MAXLENGTH="25" >
</form>
- Parent Model
- <form>
- Content Model
- This tag accepts no content.
Tips & Tricks
Browser Peculiarities
Boring Copyright Stuff...