HTML Attributes
HTML multiple attribute
Allows multiple files, comma-separated email addresses or multiple select options depending on the element. It does not apply to ordinary text inputs. Applicable elements include: <input>, <select>. Check each element’s value rules. Boolean syntax: presence enables the state; omit the attribute to disable it. A string value of "false" does not turn it off. For email input, multiple permits a comma-separated address list. For file input it permits multiple selected files; for select it permits multiple selected options. These are different behaviors and should not share unqualified compatibility claims.
Formal Syntax & Structure
html syntaxhtml
multipleParameters & Attributes
| Name | Type | Description |
|---|---|---|
| multiple | boolean | Allows multiple files, comma-separated email addresses or multiple select options depending on the element. It does not apply to ordinary text inputs. |
Working Example
Example Snippethtml
<label> Files <input type="file" name="files" multiple></label>Browser Compatibility
Minimum supported versions across modern rendering engines
Blink (modern)
Chrome
2
Yes
EdgeHTML / Blink
Edge
12
Yes
Gecko
Firefox
3.6
Yes
WebKit
Safari
4
Yes
Presto / Blink
Opera
≤12.1
Yes
Desktop support for multiple on input only; other elements, input types, individual values and mobile behavior may differ.
HTML Living Standard