- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
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.
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>
Advertisements