HTML <meter> value Attribute

The value attribute on a <meter> tag sets the initial value of the element. The value must be numeric.

Example

#

A <value attribute on a <meter>.
This attribute assigns the initial meter value.

Pressure reading

7/10
<div>Pressure reading</div>

<br />
<meter min="1" max="10" value="7">7/10</meter>

Using value

The value attribute specifies the current value of the meter control (gauge).

The attribute value must be between the min and max values.

The value attribute is required for the <meter> element.


Syntax

<meter value="number">

Note:  The value is required.


Values

#

Value Description
number A whole or floating point number.

Browser support

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

You may also like

 Back to <meter>
Guides