HTML <input> multiple Attribute

Definition and Usage

multiple The attribute specifies that multiple values can be selected in the input field.

multiple The attribute is a boolean attribute.

If this attribute is set, it specifies that multiple values are allowed to be entered in the <input> element.

Note:multiple The attribute applies to the following input types:

  • email
  • file

Tip:For <input type="file">To select multiple files, please hold down the CTRL or SHIFT key during selection.

Tip:For <input type="email">:Separate each email address with a comma, for example:

mail@example.com, mail2@example.com, mail3@example.com

Example

File upload field that accepts multiple values:

<form action="/action_page.php">
  <label for="files">Please select a file:</label>
  <input type="file" id="files" name="files" multiple><br><br>
  <input type="submit">
</form>

Try It Yourself

Syntax

<input multiple>

Browser Support

The numbers in the table indicate the first browser version to fully support this attribute.

Chrome Edge Firefox Safari Opera
Chrome Edge Firefox Safari Opera
6.0 10.0 3.6 5.0 11.0