You are here : htmlHTML 5option

<option> - HTML 5

The <option> tag defines an option in a select list.

<option> elements go inside a <select> or <datalist> element.


Syntax

    <select>             <option value="volvo">Volvo</option>             <option value="saab">Saab</option>             <option value="opel">Opel</option>             <option value="audi">Audi</option>      </select>


Example

    <select>             <option value="volvo">Volvo</option>             <option value="saab">Saab</option>             <option value="opel">Opel</option>             <option value="audi">Audi</option>      </select>


Output / Return Value


Limitations


Alternatives / See Also


Reference