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.
Example
You can try to run the following code to learn how to use multiple attribute in HTML:
<!DOCTYPE html> <html> <head> <title>HTML multiple attribute</title> </head> <body> <form> <input type="file" name="name" multiple><br><br> Upload multiple files, and click Submit.<br> <input type="submit" value="Submit"> </form> </body> </html>