Web Development and Design Foundations with XHTML, 5th Edition

(Steven Felgate) #1
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