Dofactory.com
Dofactory.com

HTML <input> multiple Attribute

The multiple attribute on an <input> tag specifies that multiple files can be selected in the file selection dialog.

This attribute only applies to input elements of type file.

Example

#

A multiple attribute on an <input> tag.
The file input control (step 1) let users select multiple image files.

Select and upload one of more image files:

Step 1  

Step 2  
<form action="/tutorial/fileupload.html">
   Select and upload one of more image files: <br /> <br />
   Step 1 &nbsp; <input type="file" name="file" 
          accept=".jpg,.png" multiple> <br /> <br />

   Step 2 &nbsp; <input type="submit">
</form>

Using multiple

The multiple attribute specifies that an element accepts multiple input values.

With this attribute enabled, users can select or enter one or more items.

This attribute only applies to these input types:

With type="email", multiple comma-separated emails can be entered.


Syntax

<input multiple>

Browser support

Here is when multiple support started for each browser:

Chrome
6.0 Sep 2010
Firefox
3.6 Jan 2010
IE/Edge
10.0 Sep 2012
Opera
11.0 Sep 2017
Safari
5.0 Jun 2010

You may also like

 Back to <input>

Author: Jack Poorte
Published: Jun 20 2021
Last Reviewed: Sep 30 2023


What's your favorite/least favorite part of Dofactory?


Guides