Skip to the page
html reference · forms

HTML <select> / <option> tags

closing tag
required (both)
void element
no
lives inside
<form>
typically holds
one or more <option> choices

Where it goes

Inside a <form>, with the <option> tags inside the <select>.

Example

<select name="color">
  <option value="red">Red</option>
  <option value="blue">Blue</option>
</select>

Open this example in the editor →

Common mistakes

  • Putting anything other than <option> (or <optgroup>) directly inside <select>.
  • Forgetting name on the <select>. Like <input>, without it the choice is never sent.
  • Leaving out value on each <option>. Then the visible text is sent instead, and it breaks the moment you reword a choice.

Related

Updated 24 October 2026. Practice it in the html route, or read more on MDN.