The value attribute on a <meter> tag sets the initial value of the element.
The value must be numeric.
A <value attribute on a <meter>.
This attribute assigns the initial meter value.
<div>Pressure reading</div>
<br />
<meter min="1" max="10" value="7">7/10</meter>
The value attribute specifies the current value of the meter control (gauge).
The attribute value must be between the min and max values.
<meter value="number">
Note: The value is required.
Value | Description |
---|---|
number | A whole or floating point number. |
Here is when value 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>