Skip to content
Related Articles

Related Articles

Improve Article
HTML | <input> multiple Attribute
  • Last Updated : 28 May, 2019

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:




<!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 6.0
  • Firefox 3.6
  • Edge 10.0
  • Opera 11.0
  • Apple Safari 5.0
My Personal Notes arrow_drop_up
Recommended Articles
Page :