Beyond inputs, a few more controls round out forms: <button>, the <select> dropdown, and multi-line <textarea>.
The controls
<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
- 01<button> triggers actions; always set type (submit/button/reset).
- 02A typeless button defaults to submit inside a form.
- 03<select> with <option>s makes a dropdown; <optgroup> groups options.
- 04<textarea> is for multi-line text input.
