How to use multiple attribute in HTML?

The multiple attribute in HTML allows user to enter more than one value. It is a Boolean attribute and can be used on <input> as well as <select> element,

To allow multiple file uploads in HTML forms, use the multiple attribute. The multiple attribute works with email and file input types.


You can try to run the following code to learn how to use multiple attribute in HTML:

<!DOCTYPE html>
      <title>HTML multiple attribute</title>
         <input type="file" name="name" multiple><br><br>
         Upload multiple files, and click Submit.<br>
         <input type="submit" value="Submit">