The HTML high attribute
In short
The HTML high attribute sets the value above which the measurement is considered "high". It is used on the <meter> element.
Overview
Syntax
<meter min="0" max="100" low="30" high="70" value="85"></meter>
Values
| Value |
|---|
| A number within the meter's range. |
Example
<meter min="0" max="100" low="30" high="70" optimum="90" value="85"></meter>
Best practices
- Compare high with low whenever both come from data. If high comes out lower, the browser raises it to equal low, which removes the middle band. Validators report low above high as an error.
- A battery gauge can skip high, because its top end needs no warning. The high boundary then sits at max, as it does for a high above max, which a validator flags.
- Readings above high aren't good or bad on their own. Depending on where optimum sits they rate optimum, suboptimal or worst; a test score meter puts optimum above high, and a disk usage meter puts it below low.
- When optimum is above high, avoid a high that readings can equal exactly. Chrome rates a reading equal to high as optimum and Firefox as suboptimal. For whole-number scores where 80 counts as good, set high to 79.5.
Frequently asked questions
What does the high attribute do?
Sets the high 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 high attribute?
It is an element-specific attribute, used on the <meter> element.























