HTML Textarea — multi-line input with a live working form
The <textarea> element is a multi-line text input, used for messages, comments, and anything longer than a single line. Unlike <input>, it has opening and closing tags and a size set by rows and cols. Below is a working contact form with a message textarea that actually submits.
Updated June 2026 · The <textarea> element · 12 elements in the reference
<form action="https://splitforms.com/api/submit" method="POST">
<input type="hidden" name="access_key" value="YOUR_ACCESS_KEY">
<label for="name">Name</label>
<input type="text" id="name" name="name" required>
<label for="email">Email</label>
<input type="email" id="email" name="email" required>
<label for="message">Message</label>
<textarea id="message" name="message" rows="5" cols="40"
maxlength="1000" placeholder="Tell us what you need…"
required></textarea>
<input type="checkbox" name="botcheck" style="display:none">
<button type="submit">Send message</button>
</form>Replace YOUR_ACCESS_KEY with a key from your free splitforms dashboard. The form posts to one endpoint — submissions land in your inbox and dashboard with spam filtering built in.
Default content goes between the tags
Unlike <input value="...">, a textarea's default text is written between <textarea> and </textarea>. Watch for leading whitespace — it shows up in the submitted value.
rows/cols are a fallback
They set a rough default size. For real layouts, control height and width with CSS so the field matches your design.
maxlength is client-only
A determined user can remove it in DevTools. Re-validate the length on the server before storing or forwarding the message.