The optimum attribute on a <meter> marks the preferred numeric value inside the measured range (min–max).
With low and high, it tells the browser which part of the scale is better. For example, if optimum sits between min and low, the lower range is preferred. Browsers may color the bar based on how value relates to that preference. It does not apply to <progress>.
Baseline · Widely available.
Not deprecated and not experimental. Stable with the <meter> element across modern browsers since about March 2017.
Not the same as value.
value is the current reading. optimum is only the preferred point / region hint for the gauge.
Syntax
HTML Syntax
syntax.html
<meter optimum="number">…</meter>
number must lie within min and max. Script: meter.optimum = 80.
First meter prefers ~90 — mid reading looks farther from ideal.
Second meter prefers ~10 — mid reading also looks imperfect, but for the opposite goal.
Always pair with labels so users know what “good” means.
Edge Cases & Pitfalls
Most mistakes confuse optimum with the current reading or use it on the wrong element.
element
Only valid on <meter>
Do not put optimum on <progress> or range inputs — it will not apply.
range
Keep optimum inside min–max
MDN requires the preferred value to lie within the measured range. Invalid numbers get clamped or ignored by the UA.
color
Bar color is browser-dependent
Do not rely on a specific green/yellow/red look. Always provide visible text or a label for the meaning.
bands
Order low and high correctly
Use min ≤ low ≤ high ≤ max. Then place optimum where “good” lives.
fallback
Put readable text inside the tag
Content like 50/100 helps when the gauge UI is limited or styled away.
Compatibility
Browser Support
optimum is an attribute of the HTML <meter> element. It is not used on progress bars or Node.js APIs.
✓ Baseline · Widely available
optimum
Widely available with <meter> since about March 2017. Gauge styling still differs by browser.
96%Global support (approx.)
Google ChromeAll modern
Full support
Mozilla FirefoxAll modern
Full support
Apple SafariAll modern
Full support
Microsoft EdgeAll modern
Full support
OperaAll modern
Full support
Samsung InternetModern
Full support
Internet ExplorerNo support
Not supported
optimumWidely supported
Bottom line: Safe to use on meter. Always label what “optimum” means; do not depend on color alone.
Remember
Key Takeaways
Role: preferred point on a <meter> scale.
Placement: high = more is better; low = less is better.
Pair with:low, high, min, max, value.
A11y: explain “good” in text — colors vary.
One line:optimum marks where “good” lives on a meter — not the current reading.
Frequently Asked Questions
On a meter element, optimum marks the preferred numeric value inside the min–max range. With low and high, it tells the browser which part of the scale is better. Browsers may color the bar based on how value relates to that preferred zone.
Only the meter element. It does not apply to progress, input type=range, or other form controls.
Yes. MDN: optimum must be within the range defined by min and max.
If optimum is between min and low, the lower part of the scale is considered preferred (for example disk free space or load where lower is better).
No. value is the current reading. optimum is the preferred point or region hint. They can be far apart.
Use the HTMLMeterElement.optimum property with a number, for example meter.optimum = 80.