HTML: textarea

The <textarea> element collects multi-line text such as a comment, message, or description.

What you will learn

Minimal example

<label for="message">Message</label>
<textarea id="message" name="message" rows="6"
          maxlength="1000" required></textarea>

The content between the opening and closing tags is the initial value. Use rows to provide a comfortable starting height, but let CSS handle the final responsive layout.

Common mistakes