Skip to main content
Albero Academy

Buttons, Select & Textarea

The remaining common form controls.

Forms7 min

Beyond inputs, a few more controls round out forms: <button>, the <select> dropdown, and multi-line <textarea>.

The controls

button, select, textarea
<button type="submit">Submit</button>
<button type="button">Just a button (no submit)</button>
<select name="country">
<option value="in">India</option>
<option value="us">United States</option>
</select>
<textarea name="message" rows="4"></textarea> <!-- multi-line text -->

Key takeaways

  1. 01<button> triggers actions; always set type (submit/button/reset).
  2. 02A typeless button defaults to submit inside a form.
  3. 03<select> with <option>s makes a dropdown; <optgroup> groups options.
  4. 04<textarea> is for multi-line text input.

Finished this chapter?

Mark it complete to track your progress through HTML.