How to set minimum and maximum value of range in HTML5 ?
In this article. we are going to set the minimum and maximum value of the range in HTML5 by using the min and max attribute in the <meter> element.
Approach: This can be implemented by using the min and max attributes:
Attention reader! Don’t stop learning now. Get hold of all the important HTML concepts with the Web Design for Beginners | HTML course.
- min: This attribute is used to specify the lower bound of the gauge. The value of the min attribute is always less than the max attribute. It has a default value which is 0.
- max: This attribute is used to specify the upper bound of the gauge. The value of the max attribute must be greater than the min attribute. It has a default value which is 1.
<meter min="number" max="number">