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.



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">

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.


<input multiple>

Browser support

Here is when multiple support started for each browser:

6.0 Sep 2010
3.6 Jan 2010
10.0 Sep 2012
11.0 Sep 2017
5.0 Jun 2010

You may also like

 Back to <input>

Last updated on Sep 30, 2023