HTML: option

The <option> element defines one choice inside a <select> or one suggestion inside a <datalist>.

What you will learn

Minimal example

<select name="plan">
  <option value="basic">Basic plan</option>
  <option value="pro" selected>Pro plan</option>
</select>

The visible text helps the user choose, while value is the data sent with the form. Keep the value stable even if the displayed wording changes.

Common mistakes