HTML <meter> Tag

Beginner
5 min read
Updated: Oct 2026
3 examples
Live preview

Definition and Usage

The <meter> element represents a scalar value within a known range (or a fraction) — battery charge, disk usage, an exam score out of 100, and similar gauges.

Set the current reading with value, and the range with min / max. Optional low, high, and optimum mark zones browsers may color differently. For task completion, use <progress> instead.

Baseline · Widely available.

Not deprecated. Stable across major browsers since about March 2017.

Note.

Always pair a visible caption (often with <label>) and keep fallback text inside the element for non-visual or limited UAs.

HTML Syntax

syntax.html
<meter value=" 0.6">60%</meter>

Both start and end tags are required. Content is phrasing content used as fallback text — do not nest another <meter>.

Attributes

Attributes on <meter> (plus global attributes):

AttributeDescriptionTry it
valueCurrent numeric reading (defaults to 0 if missing/invalid)Try it
minLower bound of the range (default 0)Try it
maxUpper bound of the range (default 1)Try it
lowUpper edge of the “low” zoneTry it
highLower edge of the “high” zoneTry it
optimumPreferred value within the range (affects zone coloring)Try it

Global Attributes

The <meter> tag also supports the Global Attributes in HTML.

Live Preview

Drag the slider to change value on a real <meter> with low / high / optimum zones.

min=0 max=100 low=33 high=66 optimum=80

Fuel level
50/100

value="50"

HTML Examples

Basic gauges, zone attributes, and a labeled meter.

Example 1 — Basic min, max, and value

Show a reading inside an explicit range with fallback text.

HTML
<p>
  Battery level:
  <meter min="0" max="100" value="75">75%</meter>
</p>
Try It Yourself

How It Works

  1. Set min and max to define the known range.
  2. Set value to the current reading inside that range.
  3. Put fallback text (like 75%) between the tags.
  4. Browsers draw a gauge; if they cannot, users still see the text.

Example 2 — low, high, and optimum

Mark zones so the UA can style “too low,” “ok,” or “high” differently.

HTML
<p>
  Exam score:
  <meter
    min="0"
    max="100"
    low="50"
    high="80"
    optimum="90"
    value="84"
  >84%</meter>
</p>
Try It Yourself

How It Works

  1. low ends the lower band; values below it are “low.”
  2. high starts the upper band; values above it are “high.”
  3. optimum says which part of the range is preferred.
  4. Exact colors vary by browser — do not rely on a specific palette for meaning alone; keep the number in text too.

Example 3 — Labeled Meter

Associate a caption with for/id so assistive tech names the gauge.

HTML
<label for="disk">Disk used:</label>
<meter id="disk" min="0" max="500" value="320">
  320 of 500 GB
</meter>
Try It Yourself

How It Works

  1. Give the meter an id.
  2. Point <label for> at that id (meter is labelable).
  3. Use units in fallback text so the meaning stays clear without the graphic.
  4. Implicit role is meter — do not override it with another ARIA role.

Edge Cases & Pitfalls

Most mistakes confuse meter with progress or leave the range undefined.

vs progress

Not for download bars

Use <progress> for task completion. Use meter for a known-range measurement.

range

Define min/max when value is not 0–1

Defaults are min=0 and max=1. Scores like 84 need max="100" (and usually min="0").

a11y

Always label the gauge

Provide a <label> (or clear surrounding text) plus readable fallback inside the meter.

zones

Keep low < high inside min–max

Invalid zone order is adjusted by the browser. Set clear, ordered numbers.

style

UA styling differs

Do not encode critical meaning only in bar color. Keep the numeric value in text.

Browser Support

The <meter> element is Baseline · Widely available. Support has been stable across major browsers since about March 2017.

✓ Baseline · Widely available

<meter>

Supported in modern Chrome, Firefox, Safari, Edge, and Opera. Visual gauge styling varies by browser.

100% Modern browser coverage
Google Chrome Yes
Supported
Mozilla Firefox Yes
Supported
Apple Safari Yes
Supported
Microsoft Edge Yes
Supported
Opera Yes
Supported
Internet Explorer No · EOL
Not supported
<meter> Widely available

Bottom line: Use <meter> for known-range measurements. Keep fallback text and a clear label.

Key Takeaways

  • Role: <meter> gauges a value inside a known range.
  • Core attrs: value, min, max — plus optional low, high, optimum.
  • Vs progress: measurement gauge ≠ task progress bar.
  • A11y: label the control and keep numeric fallback text inside.

One line: Use <meter> when you already know the range — not when you are tracking a task.

Default CSS Settings

Browsers provide a native gauge look. A typical conceptual baseline:

default.css
meter {
  display: inline-block;
  width: 5em;
  height: 1em;
  vertical-align: -0.2em;
}

Exact appearance (and zone colors) is user-agent specific. Prefer width/height overrides over fighting internal shadow DOM styles unless you need a fully custom gauge.

Frequently Asked Questions

The meter element shows a scalar value within a known range — disk free space, a score out of 100, fuel level, and similar gauges. It is not for indeterminate task progress.
progress tracks completion of a task (download, upload, steps). meter shows a measurement in a fixed range. Use progress for “how far along,” meter for “how much relative to min/max.”
They mark zones on the range. Browsers may change the bar color based on whether the current value sits in a low, mid, or high band relative to optimum.
If omitted, min defaults to 0 and max defaults to 1. When value is outside 0–1, set min and max so value falls inside the range.
Yes. Put readable text between the tags (for example 75%) for environments that do not render the gauge UI.
No. Descendants must not include another meter element.

Next: multicol

Learn the obsolete multicol element and modern CSS columns.

multicol tutorial →

About the author

Mari Selvan M P
Mari Selvan M P 🔗

Developer, cloud engineer, and technical writer

  • Experience 12 years building web and cloud systems
  • Focus Full Stack Development, AWS, and Developer Education

I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.

9 people found this page helpful