The "textarea" Element

The "textarea" element represents a multiline plain text edit control. The contents of "textarea" (if any) represent the control's default value.

Attributes for "textarea"
TypeAttribute List
'Standard' Attributes"amp-access", "amp-access-hide", "autocapitalize", "autocorrect", "cols", "disabled", "fallback", "name", "placeholder", "readonly", and "rows"
New HTML5 Attributes"autocomplete", "autofocus", "dirname", "form", "maxlength", "required", and "wrap"
New HTML 5.1 Attributes"inputmode" and "minlength"

Syntax Notes for "textarea"

  • If the "rows" attribute is not used then the control defaults to having 2 rows. If the "cols" attribute is not used then the control defaults to having 20 columns.

Recommended Links

Accessibility Information & Tips

  • Use the "title" attribute to label form controls when a label cannot be accommodated, like when there is no room for a label or it might be confusing. Visit for http://www.w3.org/TR/WCAG20-TECHS/H65 more information. If a label can be accomodated, then use the "title" attribute to provide context-sensitive help. Visit for http://www.w3.org/TR/WCAG20-TECHS/H89 more information.

Search Engine Links (for more information)

Help us improve this page: Suggest a link or noteReport a problem