Module textarea

Module textarea 

Source
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 submission
  • rows/cols: Visual dimensions in characters
  • placeholder: Hint text when empty
  • maxlength: Maximum character limit
  • wrap: 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 autocomplete attribute.
AUTOFOCUS
The autofocus attribute.
COLS
The cols attribute.
DISABLED
The disabled attribute.
FORM
The form attribute.
MAXLENGTH
The maxlength attribute.
MINLENGTH
The minlength attribute.
NAME
The name attribute.
PLACEHOLDER
The placeholder attribute.
READONLY
The readonly attribute.
REQUIRED
The required attribute.
ROWS
The rows attribute.
WRAP
The wrap attribute.