HTML <input> multiple Attribute
A file upload field that accepts multiple values:
Select images: <input type="file" name="img" multiple>
Try it yourself »
The multiple attribute is supported in Internet Explorer 10, Firefox, Opera, Chrome, and Safari.
Note: The multiple attribute of the <input> tag is not supported in Internet Explorer 9 and earlier versions.
Definition and Usage
The multiple attribute is a boolean attribute.
When present, it specifies that the user is allowed to enter more than one value in the <input> element.
Note: The multiple attribute works with the following input types: email, and file.
Tip: For <input type="file">: to select multiple files, hold down the CTRL or SHIFT key while selecting.
Tip: For <input type="email">: separate each email with a comma, like: firstname.lastname@example.org, email@example.com, firstname.lastname@example.org in the email field.
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 <input multiple="multiple" />.
HTML <input> tag
Thank You For Helping Us!
Your message has been sent to W3Schools.