<option>
The option element defines a single choice within a select, optgroup, or datalist.
Syntax
<option value="v">Label</option> Examples
<select name="country">
<option value="us">United States</option>
<option value="ca" disabled>Canada</option>
</select>
Output
Renders a dropdown where "Canada" appears greyed out and cannot be selected.
Notes
If value is omitted the text content is submitted. Use selected to preset a choice and disabled to block one.
Browser & runtime support
| Environment | Since version |
|---|---|
| chrome | 1.0 |
| firefox | 1.0 |
| safari | 1.0 |
| edge | 12 |