The SELECT tag allows the user to select a single item from number of options. Unlike the radio button, the SELECT tag does not provide any default option that is to be transmitted to the server when no option is selected by the user. The options are written within the opening and the closing tags of the SELECT tag by using the OPTION tag.
The following table describes the various attributes of the SELECT tag :
|disabled||Implies that the drop-down list is disabled|
|name||Refers to the name of the drop-down list|
|size||Refers to the number of visible options shown in the drop-down list|
|autofocus||Allows the button control to get the focus as soon as the page loads|
|form||Refers to the id of the FORM|
|multiple||Specifies that the multiple items can be selected from the drop-down list|