Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML select multiple attribute

HTML tag

Example

Allowing multiple selections in a drop-down list:

Try it »


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the multiple property.


Definition and Usage

The multiple attribute is a boolean attribute.

The multiple attribute specifies that multiple options can be selected at the same time.

Differences in selecting multiple options across different operating systems and browsers:

Because of the differences above, and because users need to be told that multiple selections are available, a more user-friendly approach is to use checkboxes.


Differences between HTML 4.01 and HTML5

none.


Differences between HTML and XHTML

In XHTML, attribute minimization is forbidden, and the multiple attribute must be defined as


HTML select Tag Reference HTML