HTML <meter> value Attribute

❮ HTML <meter> tag

Example

<p><label for="a">A score:</label>
<meter id="a" min="0" low="40" high="90" max="100" value="60"></meter></p>

<p><label for="b">B score:</label>
<meter id="b" min="0" low="40" high="90" max="100" value="85"></meter></p>

Meaning

The value attribute holds a float value that indicates the current value of the measurement.

This must be between the minimum and maximum values (min attribute and max attribute) if they are specified. If unspecified or malformed, the value is 0. If specified, but not within the range given by the min attribute and max attribute, the value is equal to the nearest end of the range.


Standard Syntax

<meter value="number">...</meter>



Browser Support




Status







Attribute Values

Value Description
number Specifies a floating number.
❮ HTML <meter> tag