HTML | min Attribute
The HTML | min Attribute is used to specify the lower bound of the gauge. The value of min attribute must be less than the value of the max attribute. It has a default value which is 0. It can be used on both <input> and <meter> Element.
- <input> When the min Attribute is present in the input Element, It specify the minium value for an <input> element.
Syntax:
<input min="number|date">
Example-1: This Example that illustrates the use of min attribute in input element.
<!DOCTYPE html><html><bodystyle="text-align:center;"><h1style="color:green;">GeeksForGeeks</h1><h2>HTML | min Attribute in Input Field</h2><formid="myGeeks"><inputtype="number"id="myNumber"step="5"name="geeks"placeholder="multiples of 5"min="10"></form><br><br><pstyle="font-size:20px;">The minimum value for aninput field is 10.</p></body></html>chevron_rightfilter_noneOutput:

- <meter>: When present in the meter element, it specofy the minimum value for a gauge.
Syntax:
<meter min="numer">
Example-2: This Example illustrates the use of min attribute in ameter element.
<!DOCTYPE html><html><head><title>HTML | min attribute</title></head><bodystyle="text-align:center;"><h1>GeeksforGeeks</h1><h2>HTML | min Attribute:</h2>Sachin's score:<metervalue="5"min="0"max="10"high="6">5 out of 10</meter><br>Laxman's score:<metervalue="0.5"max="1.0"min="0"high="0.6">50% from 100%</meter></body></html>chevron_rightfilter_noneOutput:

Supported Browsers: The browser supported by min Attribute are listed below:
- Google Chrome 5.0
- Internet Explorer 10.0
- Firefox 16.0
- Opera 10.6
- Safari 5.1
Recommended Posts:
- HTML | <img> src Attribute
- HTML | <map> name Attribute
- HTML | <bdo> dir Attribute
- HTML | <img> alt Attribute
- HTML | max attribute
- HTML | low Attribute
- HTML | <a> rel Attribute
- HTML | rel attribute
- HTML src attribute
- HTML | name Attribute
- HTML | value Attribute
- HTML | alt attribute
- HTML | <li> value Attribute
- HTML | for Attribute
- HTML | dir Attribute
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.




