HTML 5: The Markup Language (ARIA Edition)

textareatext input area # T

The textarea element represents a multi-line plain-text edit control for the element’s raw value.

Content model #

Attribute model #

Element-specific attributes #

rows = integer.positive
The number of lines of text for the UA to show.
wrap.hard = "hard"
Instructs the UA to insert line breaks into the submitted value of the textarea, such that each line has no more characters than the value specified by the cols attribute.
cols = integer.positive
The expected maximum number of characters per line of text for the UA to show.
wrap.soft = "soft"
Instructs the UA to add no line breaks to the submitted value of the textarea.

Assertions #

Tag omission #

A textarea element must have both a start tag and an end tag.

Permitted contexts #

Details #

The contents of the textarea element represent the control’s default value.