The HTML low attribute
In short
The HTML low attribute sets the value below which the measurement is considered "low". It is used on the <meter> element.
Overview
Syntax
<meter min="0" max="100" low="30" high="70" value="20"></meter>
Values
| Value |
|---|
| A number within the meter's range. |
Example
<meter min="0" max="100" low="30" high="70" optimum="90" value="20"></meter>
Best practices
- Express low on the same scale as min and max. With no min or max attribute the range is 0 to 1, which means
low="30"is clamped to 1 and fails validation. - Use a bare number for low. Chrome reads
low="20%"as 20, but Firefox ignores it and falls back to min, and a validator rejects the percent sign. - Read
meter.lowto see the value the browser uses. It returns the clamped number, solow="-5"with min at 0 reads as 0, whilegetAttribute("low")still returns -5. - When smaller readings are better, put low above optimum. Without low, an optimum at min sits on the low boundary, and readings above high show as suboptimal instead of worst.
Frequently asked questions
What does the low attribute do?
Sets the low boundary of a meter.
How do the low, high and optimum attributes work?
They split the range into segments so the browser can color the gauge, for example green in the optimum zone and red when poor.
What is the difference between meter and progress?
<meter> shows a measurement within a range; <progress> shows how far along a task is.
Which elements use the low attribute?
It is an element-specific attribute, used on the <meter> element.























