<option>

The option element defines a single choice within a select, optgroup, or datalist.

Since HTML 2.0 Spec ↗

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

EnvironmentSince version
chrome 1.0
firefox 1.0
safari 1.0
edge 12

See also