HTML <input> multipleAttribute
Examples
A file upload field that accepts multiple values:
<form action="demo-form.php">
Select images: <input type="file" name="img" multiple>
<input type="submit">
</form>
Select images: <input type="file" name="img" multiple>
<input type="submit">
</form>
Try it Yourself »
Browser Support
![]()
![]()
![]()
![]()
![]()
Internet Explorer 10, Firefox, Opera, Chrome, and Safari support the multiple attribute.
Note:Internet Explorer 9 and earlier versions do not support the multiple attribute on the <input> tag.
Definition and Usage
The multiple attribute is a boolean attribute.
The multiple attribute specifies that the user is allowed to enter multiple values into the <input> 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 a new attribute in HTML5.
Differences between HTML and XHTML
In XHTML, attribute minimization is forbidden, and the multiple attribute must be defined as <input multiple="multiple" />.
Syntax
<input multiple>
HTML <input> tag Other extensions