Home → References → HTML Tags →
HTML Tag: select
A drop-down list form element. option elements within the select element define each list item.
HTML Dog is hosted by Titan Internet
Required Attributes
- None.
Optional Attributes
namecan be used so that the value of the selected option element can be processed.sizecan be used to specify how many items of the list are displayed at any time. The default is1.multiplecan be used to specify that more than one item from the list can be selected. This must be used in the formatmultiple="multiple".disabledcan be used to disable an element. It must be used in the formatdisabled="disabled".tabindexcan be used to specify where the element appears in the tab order of the page.- Common attributes
Example
<select name="dogs">
<option>Domestic Dog</option>
<option>Arctic Fox</option>
<option>Maned Wolf</option>
<option>Grey Wolf</option>
<option>Red Fox</option>
<option>Fennec</option>
</select>

