You are here : htmlHTML 5select

<select> - HTML 5

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.


Syntax

    <select>             <option value="volvo">Volvo</option>             <option value="saab">Saab</option>             <option value="mercedes">Mercedes</option>             <option value="audi">Audi</option>      </select>


Example

    <select>             <option value="volvo">Volvo</option>             <option value="saab">Saab</option>             <option value="mercedes">Mercedes</option>             <option value="audi">Audi</option>      </select>


Output / Return Value


Limitations


Alternatives / See Also


Reference