A max attribute on a <meter> element.
The value of this meter cannot exceed the maximum value specified.
<div>Pressure reading</div>
<br />
<meter min="1" max="25" value="14">14/25</meter>
The max attribute specifies the upper bound or limit of the gauge.
The max value must be greater than the min value.
If not set, the meter element uses 1 as its default maximum value.
<meter max="number">
Value | Description |
---|---|
number | The maximum number of the gauge. Default is 1. |
Here is when max support started for each browser:
Chrome
|
8.0 | Dec 2010 |
Firefox
|
16.0 | Oct 2012 |
IE/Edge
|
13.0 | Nov 2015 |
Opera
|
11.5 | May 2011 |
Safari
|
6.0 | Jul 2012 |
Back to <meter>