<select name="Food"> <option value ="apples">Apples</option> <option value ="bananas">Bananas</option> <option value ="oranges">Oranges</option> </select>
The above example demonstrates usage of the
<select> element represents a control for selecting amongst a set of options. This is typically rendered as a drop down menu containing a list of options.
<select> element accepts the following attributes (as well as the global HTML attributes):