Select Dropdowns & Textarea — Free HTML Tutorial

Learn Select Dropdowns & Textarea in HTML with a free, beginner-friendly tutorial, examples and practice for Indian students on Syllab.in.

Select Dropdowns & Textarea — Free HTML Tutorial

Learn Select Dropdowns & Textarea in HTML with a free, beginner-friendly tutorial, examples and practice for Indian students on Syllab.in.

✓ 100% Free ✓ No Login Needed ✓ NCERT / CBSE Aligned ✓ Download as PDF

TL;DR: Learn Select Dropdowns & Textarea in HTML with a free, beginner-friendly tutorial, examples and practice for Indian students on Syllab.in.

Written & reviewed by the Syllab.in Academic Team (CBSE/NCERT subject experts) · Updated

🤖 Stuck on any question? Ask Syllab's free AI Tutor for a step-by-step explanation — instant, unlimited, no login.

Select Dropdowns & Textarea in HTML

<select> creates dropdown menus with <option> elements. <optgroup> groups related options. <textarea> is for multi-line text input.

Use name and id on both select and textarea for form submission. Add size, disabled, readonly, and required attributes.

Style <select> and <textarea> like text inputs. Textarea can have rows and cols attributes.

Select Dropdowns & Textarea — Syntax

<select id="subject" name="subject">
  <option value="math">Mathematics</option>
  <option value="science">Science</option>
</select>

<textarea id="feedback" name="feedback" rows="4" cols="50"></textarea>

Learn Select Dropdowns & Textarea step by step with Syllab's free interactive HTML tutorial — runnable code examples, practice exercises and instant AI feedback, all free with no signup. Explore the full HTML course →