Dropdown Menu is one of the most flexible object in HTML. It is similar to that of radio button i.e, only one item can be selected from a group of items but the only difference is Dropdown menu occupies less space on the for when compared to Radiobutton and people can view one item at a time.
Attributes of Dropdown Menu: Attributes of <select>...</select>: Name: Specifies the name of the object through which it can be referenced. Size: Used to specify the number of visible items in the list. Multiple: If given yes, then multiple choices can be made.
Attributes of <option>...</option>: value: Used to specify the value to be submitted if the form has been submitted. selected: Default selection of the item. Example: Favourite color: <select name="ddl">
<option>Blue</option>
<option>Green</option>
<option>Red</option>
<option selected>Select a Color </option> </select>