HTML select Tag

Example

Create a drop-down list with four options:
<select>
  <option value="volvo">Volvo</option>
  <option value="saab">Saab</option>
  <option value="mercedes">Mercedes</option>
  <option value="audi">Audi</option>
</select>
Teach Yourself  by BH24 HTML Editor Tool!

The <select> tag is supported in all major browsers.

Definition and Usage

The <select> element is used to create a drop-down list.
The <option> tags inside the <select> element define the available options in the list.

Tips and Notes

Tip: The <select> element is a form control and can be used in a form to collect user input.