Name

textarea

Synopsis

<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(id, class, style, title), Internationalization, Events, onselect, onchange, Focus(accesskey, tabindex, onfocus, onblur)

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 only be altered 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.

Get Web Design in a Nutshell, 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.