Expand description
Attribute names for textarea (<textarea>) elements.
§Purpose
The <textarea> element represents a multi-line plain text editing control,
useful for collecting longer text input from users.
§Common Attributes
name: Form control name for submissionrows/cols: Visual dimensions in charactersplaceholder: Hint text when emptymaxlength: Maximum character limitwrap: Text wrapping behavior (soft, hard, off)required: Makes the field mandatory
§Example
<textarea name="comments" rows="4" cols="50" placeholder="Enter comments"
maxlength="500" required></textarea>
<textarea name="code" wrap="off" spellcheck="false"></textarea>§WHATWG Specification
Constants§
- AUTOCOMPLETE
- The
autocompleteattribute. - AUTOFOCUS
- The
autofocusattribute. - COLS
- The
colsattribute. - DISABLED
- The
disabledattribute. - FORM
- The
formattribute. - MAXLENGTH
- The
maxlengthattribute. - MINLENGTH
- The
minlengthattribute. - NAME
- The
nameattribute. - PLACEHOLDER
- The
placeholderattribute. - READONLY
- The
readonlyattribute. - REQUIRED
- The
requiredattribute. - ROWS
- The
rowsattribute. - WRAP
- The
wrapattribute.