
Apu
July 17, 2022 .
#Attribute
.
#Element
❌
HTML max attribute of input element
The HTML max attribute is used to defines the maximum value of an input element. It specifies the maximum value that is acceptable and also valid in the input element. The max attribute works on <input> elements of the numeric or date type .
Example of max attribute of input element
<label>Mobile Number : <input type="number" max="5" required="" placeholder="91##"> </label> <label>Select Date : <input type="date" max="2021-01-01" required=""> </label>Try it Yourself »
To create a range of legal values, use the max attribute together with the min attribute.
Conclusion
In this article, you have learned about HTML max attribute of input element.
save
listen
AI Answer
HTML max attribute of input element
0
The HTML max attribute is used to defines the maximum value of an input element. It speci…
asked
Apu
0 answers
2915
The HTML max attribute is used to defines the maximum value of an input element. It speci…
Answer Link
answered
Apu