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

HTML input multiple attribute

HTML multiple property

HTML input Tag Reference HTML tag

Example

A file upload field that accepts multiple values:

Select images:

Try it »


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Internet Explorer 10, Firefox, Opera, Chrome, and Safari support the multiple attribute.

**Note:** Internet Explorer 9 and earlier versions do not support the the multiple attribute of the tag.


Definition and Usage

The multiple attribute is a boolean attribute.

The multiple attribute specifies that the user can enter multiple values into the element.

**Note:** The multiple attribute applies to the following input types: email and file.


Differences between HTML 4.01 and HTML5

The multiple attribute is new in HTML5.


Differences between HTML and XHTML

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


Syntax


HTML input Tag Reference HTML tag