HTML - статьи

TEXTAREA


Description

The TEXTAREA element is used to specify a multiline input field

as part of the contents in a FORM element.

NAME defines the symbolic name of the field

returned to the server on submission.

The characters between the opening and closing tags

define the text to be initially displayed in the textarea,

and the default text to be returned, normally null.

Only ASCII text is allowed as characters, and newlines are respected.

ROWS and COLS

define the physical size of the

displayed input field in numbers of characters.

Minimum Attributes



<TEXTAREA NAME="..."

ROWS="..."

COLS="...">

</TEXTAREA>

All Possible Attributes

<TEXTAREA NAME="..."

ROWS="..."

COLS="..."

LANG="..."

DIR=ltr|rtl

ID="..."

CLASS="..."

WRAP=off|virtual|physical

ALIGN=top|middle|bottom|left|right

DISABLED

ERROR="...">characters...

</TEXTAREA>

Elements Allowed Within...

Only parsed character data is expected in the content of the

TEXTAREA element. Note that the elements

are expressly prohibited by RFC 1866 from being nested

within the TEXTAREA element content

Allowed In Content Of...

Variations

The LANG and DIR attributes are introduced with the

internationalization proposal.

The WRAP attribute is a Netscape 2.0 extension and controls

word wrapping inside the TEXTAREA.

The value off is default and lines are sent exactly as typed.

The value virtual wraps in the display but are sent

exactly as typed.

The value physical wraps in the display and sends new-lines

at the wrap points as if new-lines had been entered.

The early Version 3 proposal added the

ALIGN, DISABLED, and ERROR attributes.

The Version 3 proposed DISABLED attribute would display this TEXTAREA,

but prohibit user entry/modification.

The Version 3 proposed ERROR attribute defines text to be displayed

in the event that the entered value for this TEXTAREA is invalid.

All elements concerning FORM are Level 2.



Содержание раздела