Home / HTML / Select tag

Select tag

The <select> tag
 
The select element creates a drop-down list. Use this tag in the form element to accept user input.
 
Example Page in browser will look like
<select>
<option SELECTED VALUE=” delhi “> delhi </option>
<option VALUE=” calcutta “> calcutta </option>
<option VALUE=”mumbai”>mumbai</option>
<option VALUE=”chennai”>chennai</option>
</select>
 
 
Attribute Value Description
disabled disabled When set, it disables the drop-down list
multiple multiple When set, it specifies that multiple items can be selected at a time
name unique_name Defines a unique name for the drop-down list
size number Defines the number of visible items in the drop-down list