Rank:  "/> Rank:  ">

Home >Web Front-end >HTML Tutorial >How to specify minimum value in HTML?

How to specify minimum value in HTML?

PHPz
PHPzforward
2023-08-31 19:21:061204browse

How to specify minimum value in HTML?

Use the min attribute to add a minimum value in HTML. You can try running the following code to implement the min property -

Example

<!DOCTYPE html>
<html>
   <body>
      <form action="">

         Rank:
         <input type = "number" name = "rank" min = "1" max = "10"><br>

         <input type = "submit">
      </form>

   </body>
</html>

The above is the detailed content of How to specify minimum value in HTML?. 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