HTML <option> Tag

<select name="Food">
<option value ="apples">Apples</option>
<option value ="bananas">Bananas</option>
<option value ="oranges">Oranges</option>

The above example demonstrates usage of the <option> element.

The <option> element typically represents an option in a <select> list. It can also represent the list of options/suggestions when using the <datalist> element.

The value attribute can be used for form submission purposes (i.e. so that any script that processes it can use this value).

You can also use the label attribute to provide a user-visible label, the selected attribute to select a default option, and the disabled attribute to disable an option.

Also see the <optgroup> for grouping <option> elements into logical groups.