HTML <meter> value attribute
Definition and Usage
Required value
The value attribute specifies the current value or 'measurement value' of the instrument.
value
The attributes must be between min and max between attribute values.
Example
Instrument with current value and minimum, maximum, high, and low values:
<p><label for="anna">Xiaoming's Score:</label> <meter id="anna" min="0" low="40" high="90" max="100" value="95"></meter></p> <p><label for="peter">Xiaomei's Score:</label> <meter id="peter" min="0" low="40" high="90" max="100" value="65"></meter></p> <p><label for="linda">Xiaofeng's Score:</label> <meter id="linda" min="0" low="40" high="90" max="100" value="35"></meter></p>
Syntax
<meter value="number">
Attribute Value
Value | Description |
---|---|
number | Required. Specifies a floating-point number, which is the current value of the gauge. |
Browser Support
The numbers in the table indicate the first browser version that fully supports this attribute.
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
8.0 | 13.0 | 16.0 | 6.0 | 11.5 |