HTML Element for Dropdown Lists | Generated by AI

Home 2026.01

Question: Which HTML element is used to create a dropdown list in a form?

Answer:

The correct HTML element for creating a dropdown list (also known as a select menu) in a form is <select>, used in combination with <option> elements for the individual choices.

Explanation:

<label for="cars">Choose a car:</label>
<select id="cars" name="cars">
  <option value="volvo">Volvo</option>
  <option value="saab">Saab</option>
  <option value="mercedes">Mercedes</option>
  <option value="audi">Audi</option>
</select>

Since the provided options (A) B) C) D)) appear incomplete and one is listed as <dropdown>, which is not a valid HTML element, the standard and correct answer is <select>.

References:


Back

x-ai/grok-4.1-fast

Donate