The <select> tag is used to create an drop down list box, that allows users to pick one among a number of given options.
The options in a <select> list are provided using th<option> tag.
<select> tag has attributes, we are going to see some of the important ones.
It allows user to select more than one options from the list.
It is used to display specified number of items.
The <option> tag represents an option in a <select> tag or in a <datalist> tag.
The behavior of this element varies slightly according to, in which of these two elements it's present on.
selected attribute is used to set an option as a default value in the dropdown list box.
In the above example Mango is selected in first load.
This attribute is used to disable the specified list in the dropdown list box.
In the above example, you can not able to select the Mango list.
This attribute is used to assign a value to each and every list items.