A.15 Form Element Tags^599
The<textarea>Ta g
<textarea></textarea>
The<textarea>tag configures a multiline text input area on a form, sometimes called
a scrolling text box. Text contained within the <textarea>tags will be initially dis-
played in the scrolling text box. Table A.26 shows <textarea>tag attributes and their
values.
Table A.25 tag attributes (continued)
Attribute Value Usage
id Text name, beginning with a letter,
no spaces
Provides a unique identifier for the form element that can be
used to associate the element with a <label>tag or act as a
named fragment identifier.
maxlength Numeric Configures the maximum number of characters allowed in a
text input area.
name Text name, beginning with a letter,
no spaces
Names the form element. The name value is used by
JavaScript, CGI, and other server-side processing.
readonly readonly Configures a textbox or password box as read only.
size Numeric Configures the width in characters of a text input area on
screen.
src File name of an image Used with type="image"
tabindex Numeric Changes the order of the form element accessed by pressing
thetkey. Default order is the order the form elements are
placed on the page.
title A brief text description Configures a brief text description that will display in some
browsers when a mouse pointer is placed over the element.
value Text or numeric characters Provides the value given to a form element, which is passed to
the form handler.
Table A.26
Attribute Value Usage
accesskey A character on the
keyboard
Configures a hot key that immediately places the cursor on the form
element.
cols Numeric Configures the number of columns in the text area.
id Text name, beginning
with a letter, no spaces
Provides a unique identifier for the form element that can be used to
associate the element with a <label>tag or act as a named fragment
identifier.
disabled "disabled" Prevents the cursor from being placed in the text area.
name Text name, beginning
with a letter, no spaces
Names the form element.
readonly readonly Configures a textarea as read only.
rows Numeric Configures the number of rows displayed on the screen in the text area.
(continues)