The HTML size Attribute is used to specifies the number of visible options in a drop-down list.
Note: If the value of the size attribute is greater than 1 but lower that the number of options in a DropDown List. so the Browser will automatically add the scrollbar for specifying that there are more options to view.
<select size = "value"> option values...</select>
Attribute Values: It contains a numeric value which specify the number of visible options in the drop-down list. It has a Default value which is 4.
Supported Browsers: The browser supported by HTML Select size Attribute are listed below:
- Google Chrome
- Internet Explorer