Form
Textarea input
Published on
Description
The textarea provides a multi-line text input for longer content such as messages, descriptions, or comments.
Example
Accessibility
- Use explicit
<label for="id">association. - Inherit typography:
font: inherit; letter-spacing: inherit; word-spacing: inherit;for WCAG 1.4.12 compliance. - Do not use
readonly— screen reader support is inconsistent. - Communicate character limits via hint text using
aria-describedby.
References
- Under-Engineered Text Boxen (opens in new tab) — Adrian Roselli
- My Priority of Methods for Labeling a Control (opens in new tab) — Adrian Roselli
Related
- Text input — for single-line text
Variables
None for input