🖼️Select Menu
Also known as Select, Dropdown List, Picker
A closed box that opens into a list. You pick one value for a form.
Think of it like
It is like a folded list in your pocket. Unfold it, pick one line, and fold it again.
Example
A shoe shop shows Size as a select menu. It takes one line until Emma opens it to pick 39.
Why it matters
It keeps forms short while still offering many choices.
Definition
Example code
html
<label for="size">Size</label>
<select id="size">
<option>38</option>
<option>39</option>
</select>Try it
One shows at a time, so nobody can compare two of them.
Open it. Fifteen names, one line of page while it is shut, and the usual ones first.
Common mistake
Key takeaways
- 1One value. For a form field.
- 2Saves space. Shut until opened.
- 3Medium lists. Roughly six to thirty.