HTML <select> tag
Usage
Creates a drop-down list of options.
Example
Code:
<select>
<option value="cat">Cat</option>
<option value="dog">Dog</option>
<option value="hamster">Hamster</option>
</select>
Output:
Required Attributes
- none
Optional Attributes
- disabled - disables the list by default
- multiple - allows the user to select multiple options
- name - a unique name for the list
- size - the number of items visible without scrolling, default is 1