You are on page 1of 1

<select> ----- used to create Dropdown Menu

Attributes ---- size, multiple


Size---- to specify how many options need to be displayed by default
Multiple ---- to select multiple options
<option> ---- Display individual option
<optgroup> ---- to Group the options

Example:
<html>
<body>
<label>Qualification</label>
<select size="2" multiple>
<optgroup label="Under Graduate Programs">
<option>BA</option>
<option>BCOM</option>
<option>BSC</option>
<option>BCA</option>
<option>Btech</option>
</optgroup>

<optgroup label="Post graduate Programs">


<option>MSC</option>
<option>MCA</option>
<option>mtech</option>
</optgroup>
</select>
</body>
</html>

You might also like