The Wayback Machine - https://web.archive.org/web/20230818141716/https://www.geeksforgeeks.org/html-input-multiple-attribute/
Skip to content
Related Articles
Open In App
Related Articles

HTML | <input> multiple Attribute

Improve Article
Improve
Save Article
Save
Like Article
Like

The HTML <input> multiple Attribute is a Boolean Attribute. It specifies that the user is allowed to select more than one value that presents in an element. The multiple attributes work with many input fields such as email, file, etc. 

Syntax:

<input multiple> 

Example: 

html




<!DOCTYPE html>
<html>
 
<body>
    <center>
        <h1 style="color:green;font-style:italic;">
          GeeksForGeeks
      </h1>
        <h2 style="color:green;font-style:italic;">
          HTML input multiple Attribute
      </h2>
        <form action=" ">
            Select images:
            <input type="file" name="img" multiple>
            <input type="submit">
        </form>
  </center>
 
</body>
 
</html>

Output:

  

Supported Browsers:

  • Google Chrome 2.0
  • Edge 12.0
  • Firefox 3.6
  • Internet Explorer 10.0
  • Opera 12.1
  • Apple Safari 4.0
Last Updated : 12 Aug, 2022
Like Article
Save Article
Similar Reads
Related Tutorials