HTML reference

input multiple

The boolean multiple attribute lets a supported control accept more than one value. Its behavior depends on the input type.

What you will learn

  • Which controls support multiple
  • How multiple files and email addresses behave
  • How to label, submit, and validate multiple values

Multiple files

<label for="photos">Photos</label>
<input id="photos" name="photos" type="file" multiple accept="image/*">

The file picker can select more than one file. The server must enforce file count, size, type, and content rules; an accept hint is not a security boundary.

Multiple email addresses

<label for="recipients">Recipients</label>
<input id="recipients" name="recipients" type="email" multiple>

The browser accepts a comma-separated list and applies email syntax checks. The server should still parse and validate each address according to the application's rules.

Do not confuse it with select

For a <select>, multiple selection is enabled by putting multiple on the select element. Give users clear instructions for keyboard selection and ensure the submitted field names match the server's expected format.

Related pages