Advertisement
Home Open Editor ❯

HTML <input> multiple Attribute

Example

<form action="action.php">
  <label for="email">Enter a emails:</label>
  <input type="email" id="email" name="emails" multiple>
  
  <input type="submit">
</form>

Try this code ❯

Meaning

The multiple is a boolean attribute, when set to true, specifies that multiple values are allowed for the field.

The multiple attribute works with the email, file type.


Standard Syntax

HTML: <input multiple>

XHTML: <input multiple="multiple" />

Browser Support

Note: Not supported on Android 4.x and below, presumably an OS limitation. Only seems to work in Android 5.x for the Chrome browser.


Status


Advertisement

Attribute Values

Value Description
multiple This is a boolean attribute, the presence of a boolean attribute on an element represents the true value, and the absence of the attribute represents the false value.
Home Open Editor ❯
Advertisement