Expand description
Attribute names for select (<select>) elements.
§Purpose
The <select> element represents a control for selecting from a set of
options, displayed as a dropdown menu or list box.
§Common Attributes
name: Form control name for submissionmultiple: Allows selecting multiple optionssize: Number of visible options (list vs dropdown)required: Makes selection mandatorydisabled: Disables the control
§Example
<select name="country" required>
<option value="">Select a country</option>
<option value="us">United States</option>
<option value="uk">United Kingdom</option>
</select>
<select name="tags" multiple size="5">
<option>JavaScript</option>
<option>Python</option>
<option>Rust</option>
</select>