HOME BACK NEXT MENU

 Tag Description:

-==--==--==--==--==-

<TEXTAREA> Form Textarea

Definition: Using the TEXTAREA element lets you enter more than one line of text.

Standard Attributes: CLASS, ID, LANG

Attributes:

ROWS

ROWS gives the visible number of text lines that are shown by the field. By scrolling as needed, user agents should allow text to grow beyond these limits.

NAME

When submitting the form's data, NAME provides the character string that is used to name the field. It is possible that several fields may share the same name, which is case-insensitive.

VALUE

VALUE is a number or character string that is used to initialize hidden fields, range, and text.

DISABLED

When DISABLED is present, the field cannot be modified by the user, although it should be rendered as normal regardless. Wherever the field is disabled, the rendering should ideally provide a clue to this state (by changing the background color, for example).

COLS

COLS is the visible number of characters across the field. In order to allow text to grow beyond these limits, user agents should scroll as needed.

ERROR

ERROR specifies an error message that explains why the field's current value registers as incorrect. The field can be assumed to be OK when this attribute is not present. It is recommended that user agents provide a cue indicating that the field is in error.

ALIGN

ALIGN can take values TOP or MIDDLE or BOTTOM. It thereby indicates which part of the field should be aligned with the baseline for the text line containing the TEXTAREA element. The default is align=top.

ALIGN=LEFT will make the field float down and over into the current left margin, and any subsequent text will wrap around the field's right hand side. Similarly, ALIGN=RIGHT will make the field align with the right margin and wrap text around the left.

Context: <TEXTAREA> is legal within

<FORM>

The following markup can be used within <TEXTAREA>: None

Suggested style/usage: Close Tag: REQUIRED

Examples: See Chapter 10 for an example of a <TEXTAREA>.

-==--==--==--==--==-
HOME BACK NEXT MENU

E-Mail: HTML for Dummies at html4dum@lanw.com
URL: http://www.lanw.com/html4dum/h4d2e/t0087.htm
Text - Copyright © 1995, 1996 Ed Tittel & Steve James.
For Dummies, the Dummies Man logo and Dummies Press are trademarks or registered trademarks of Wiley Publishing, Inc. Used with Permission.
Web Layout - Copyright © 1996, LANWrights
Revised -- May, 2002 [MCB]