Rank: &nbs"/> Rank: &nbs">

Home >Web Front-end >HTML Tutorial >How to add maximum value to HTML?

How to add maximum value to HTML?

PHPz
PHPzforward
2023-09-20 23:41:031088browse

How to add maximum value to HTML?

Use the max attribute to add a maximum value in HTML. You can try running the following code to implement the max 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 add maximum value to 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