HTML · Forms and controls

option

One choice inside a select or datalist.

Syntax
<option value="…">…</option>

Example

Try it

More in this group

button datalist fieldset form input input types label legend

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course