How to specify that a user can enter more than one value in HTML?


Use the multiple attribute in HTML to specify a user can enter more than one value.

Example

You can try to run the following code to implement multiple attribute −

<!DOCTYPE html>
<html>
   <head>
      <title>Upload multiple files</title>
   </head>
   <body>
      <form>
         <input type = "file" name = "name" multiple><br><br>
         After uploading multiple files, click Submit.<br>
         <input type = "submit" value = "Submit">
      </form>
   </body>
</html>

Updated on: 31-May-2020

64 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements