HOME HTML CSS JAVASCRIPT SQL PHP JQUERY XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

HTML <input> multiple Attribute

HTML input Tag Reference HTML <input> tag

Example

A file upload field that accepts multiple values:

<form action="demo_form.asp">
  Select images: <input type="file" name="img" multiple>
  <input type="submit">
</form>

Try it yourself »

Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The multiple attribute is supported in Internet Explorer 10, Firefox, Opera, Chrome, and Safari.

Note: The multiple attribute of the <input> tag is not supported in Internet Explorer 9 and earlier versions.


Definition and Usage

The multiple attribute is a boolean attribute.

When present, it specifies that the user is allowed to enter more than one value in the <input> element.

Note: The multiple attribute works with the following input types: email, and file.


Differences Between HTML 4.01 and HTML5

The multiple attribute is new in HTML5.


Differences Between HTML and XHTML

In XHTML, attribute minimization is forbidden, and the multiple attribute must be defined as <input multiple="multiple" />.


Syntax

<input multiple>


HTML input Tag Reference HTML <input> tag

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates

SHARE THIS PAGE