Home  >  Article  >  Web Front-end  >  How to specify in HTML that the user can enter multiple values?

How to specify in HTML that the user can enter multiple values?

PHPz
PHPzforward
2023-09-11 09:05:04561browse

How to specify in HTML that the user can enter multiple values?

Use the multiple attribute in HTML to specify that the user can enter multiple values.

Example

You can try running the following code to achieve multiple properties -

<!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>

The above is the detailed content of How to specify in HTML that the user can enter multiple values?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete