size attribute (keygen, select)
Specifies the count of the visible option items in a selection list. The selection list can be a select element or the selection list of a keygen element.
If the value of the size attribute is greater than one, the appearance of the selection list is a list box.
Integer that sets the count of the visible options.
Default: this attribute has no default value.
Example HTML code 1:
This example illustrates the use of the size attribute:
Did you find this example helpful?
Supported by tags:
User Contributed Comments