value attribute | value property
Specifies the measured value of a meter element.
![]() |
Syntax
| HTML | <element value="p" ... > |
|---|
Property values
Type: Number
A valid floating point number that represents the measured value of the meter.
Standards information
Remarks
The value of the value attribute must be between the min and max values.
If the value of the value attribute is less than the value of the minattribute, the value of the value attribute is the minimum.
If the value of the value attribute is greater than the value of the max attribute, the value of the value attribute is the maximum.
Examples
This example will create a meter element with a value of 40. Because min is 0 and max is 100, the meter will be 40% full.
<meter value="40" min="0" max="100"></meter>
See also
Show:
