HTML multiple Attribute

Beginner
5 min read
Updated: Oct 2026
3 examples
Live preview

Definition and Usage

The multiple attribute is a Boolean attribute. When present, the control accepts one or more values. It is valid on <select>, <input type="file">, and <input type="email">.

How users pick several values depends on the control: a scrolling list for most multi-selects, platform file-picker gestures for files, and comma-separated addresses for email. Tell users that multiple values are allowed (for email, say to separate addresses with commas).

Baseline · Widely available.

Not deprecated and not experimental. Stable across modern browsers since about July 2015.

Boolean — presence turns it on.

multiple="false" does not disable it. Remove the attribute entirely for single-value mode.

HTML Syntax

syntax.html
<select multiple> …</select>
<input type="file|email" multiple>

Write multiple alone (or multiple="" / multiple="multiple"). Any value still means “on.”

Attribute Values

Boolean attribute — no meaningful value list. Behavior by element:

ElementWith multipleTry it
<select>Zero or more options; usually a list box, not a single dropdownTry it
<input type="file">User can pick more than one fileTry it
<input type="email">Comma-separated email addresses are allowedTry it
Other input typesNot applicable — attribute is ignoredTry it

Live Preview

Toggle multiple on a <select>. With it on, hold Ctrl/Cmd (or Shift) to pick more than one option.

Compare the list-box look (multiple) with a normal dropdown (single).

Select

multiple is present — pick one or more options

HTML Examples

Short, copy-ready snippets. Use Try It Yourself for a live editor.

Example 1 — Multi-Select List

Let users choose more than one option from a list.

HTML
<label for="shakes">Which shakes would you like?</label>
<select id="shakes" name="shakes" multiple>
  <option>Vanilla Shake</option>
  <option>Strawberry Shake</option>
  <option>Chocolate Shake</option>
</select>
Try It Yourself

How It Works

  1. Add multiple on the <select>.
  2. UI changes. Most browsers show a scrolling list instead of a dropdown.
  3. Same name for all selected options — submitted as repeated values.
  4. Tell users how to multi-select (Ctrl/Cmd + click, or Shift for a range).

Example 2 — Multiple File Upload

Allow more than one file, optionally filtered with accept.

HTML
<label for="uploads">Choose images to upload:</label>
<input
  type="file"
  id="uploads"
  name="uploads"
  accept=".jpg, .jpeg, .png, .gif"
  multiple>
Try It Yourself

How It Works

  1. type="file" plus multiple enables multi-file pick.
  2. accept (optional) hints which file types to show — see accept.
  3. Real uploads need method="post" and enctype="multipart/form-data".
  4. Validate server-side — count, size, and type can still be wrong.

Example 3 — Multiple Email Addresses

Accept a comma-separated list of emails in one field.

HTML
<label for="recipients">Send receipt to (comma-separated):</label>
<input
  type="email"
  id="recipients"
  name="recipients"
  multiple
  required>
Try It Yourself

How It Works

  1. type="email" plus multiple allows a list of addresses.
  2. Separate with commas. Spaces around each address are trimmed.
  3. required means at least one valid address is needed.
  4. Say so in the label — users may not know commas are allowed.

Edge Cases & Pitfalls

Most issues come from unclear instructions or treating Boolean attributes like normal values.

boolean

Do not use multiple="false"

Presence means on. Remove the attribute for single selection.

a11y

Explain how to choose more than one

Say it in the label or help text. For email, mention commas. For select, mention Ctrl/Cmd or Shift.

size

Avoid size="1" on multi-select

A one-line multi-select is hard to use. Let the list show several options, or teach users the keyboard/mouse pattern.

upload

Files need multipart POST

multiple alone does not upload. Use method="post" and enctype="multipart/form-data".

submit

Repeated name values

Servers often receive name=value1&name=value2. Handle arrays/lists on the backend.

Browser Support

multiple is an HTML attribute for select, file, and email controls in the browser. It is not a Node.js, Deno, or Bun API.

✓ Baseline · Widely available

multiple

Widely available since about July 2015. Chrome, Firefox, Safari, Edge, and Opera support multiple on select, file, and email.

97% Global support (approx.)
Google Chrome 4+
Full support
Mozilla Firefox 4+
Full support
Apple Safari 5+
Full support
Microsoft Edge 12+
Full support
Opera 15+
Full support
Samsung Internet 4+
Full support
Internet Explorer 10+
Supported
multiple Widely supported

Bottom line: Safe to use everywhere for multi-value select, file, and email controls. Always explain the interaction to users.

Key Takeaways

  • Role: allow more than one value on select, file, or email.
  • Boolean: present = on; omit to allow only one value.
  • Email: comma-separated addresses; say so in the label.
  • Files: pair with POST + multipart for real uploads.

One line: multiple turns a single-value control into a multi-value one — teach users how to use it.

Frequently Asked Questions

It is a Boolean attribute that lets a control accept more than one value. It is valid on select, input type=file, and input type=email.
On many platforms, hold Ctrl (Windows/Linux) or Command (macOS) and click options, or use Shift for a range. Most browsers show a scrolling list instead of a single dropdown.
With type=email and multiple, the user can enter comma-separated addresses. Leading and trailing spaces around each address are trimmed.
Selected options or files often repeat the same name in the query or body, like name=a&name=b. For file uploads, use method=post and enctype=multipart/form-data.
No. Boolean attributes are on when present. To disable multi-value mode, remove the multiple attribute entirely.
It is Baseline widely available. Desktop and modern mobile browsers support it on select, file, and email controls.

Next: muted

Start audio or video silent until the user unmutes.

muted tutorial →

About the author

Mari Selvan M P
Mari Selvan M P 🔗

Developer, cloud engineer, and technical writer

  • Experience 12 years building web and cloud systems
  • Focus Full Stack Development, AWS, and Developer Education

I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.

10 people found this page helpful