Name

textarea — <textarea> . . . </textarea>

Defines a multiline text entry control. The content of the textarea element is displayed in the text entry field when the form initially displays.

Core, Internationalization, Events, Focus, onselect, onchange

cols="number"

Required. Specifies the visible width of the text entry field, measured in number of characters. Users may enter text lines that are longer than the provided width, in which case the entry scrolls to the right (or wraps if the browser provides some mechanism for doing so).

disabled="disabled"

Disables the control for user input. It can be altered only via a script. Browsers may display disabled controls differently (grayed out, for example), which could be useful for dimming certain controls until required info is supplied.

name="text"

Required. Specifies a name for the text input control. This name will be sent along with the control content to the form-processing application.

readonly="readonly"

Indicates that the form control may not be modified.

rows="number"

Required. Specifies the height of the text entry field in number of lines of text. If the user enters more lines than are visible, the text field scrolls down to accommodate the extra lines.

Example

<p>What did you dream last night?</p>
<textarea name="dream" rows="4" cols="45" >Tell us your dream in 100 words
 or less</textarea>

Get HTML and XHTML Pocket Reference, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.