Html 5 Form max Attribute Tag

In the max attribute is used to indicate maximum value to allow for a input fields. which is restrict number or date or date pickers or range for input field types.

Syntax:

<input max = "0" />

Example Code



Type Number : <input type = "number" name = "num" id = "num" min = "0" max = "10" />

Out Put :

Type Number :

In the above input type is a number and you can enter a number minimum 0 and maximum 10.





Content