CSS Portal

HTML <meter> Tag

If this site has been useful, we’d love your support! Consider buying us a coffee to keep things going strong!

Description

The HTML <meter> element represents a scalar measurement within a known range, or a fractional value, essentially providing a way to display a measurement or a “gauge” on a webpage. Unlike progress bars, which typically indicate the completion of a task, the <meter> tag is meant to reflect a measurement relative to a minimum and maximum value, giving users an intuitive visual representation of that data.

For example, it can be used to show disk usage, battery level, temperature, or any other numeric value that falls within a specific range. The <meter> element can also indicate an optimal range, allowing developers to visually emphasize when a measurement is within or outside a desired threshold.

Visually, browsers typically render <meter> as a horizontal bar that fills proportionally according to its value relative to the specified range. Some browsers may apply color coding, such as green for safe levels, yellow for caution, and red for high or critical levels, although this can often be customized using CSS.

The <meter> element is semantic, meaning it not only provides a visual cue but also carries meaning for accessibility technologies. Screen readers can interpret its values, informing users about the current state of the measurement even if they cannot see the visual bar.

Properties

Permitted Parents
Any element that accepts phrasing content
Content
Inline and text, but no <meter> among its descendants
Start/End Tags
Start tag: required, End tag: required

Example

<p>Average Review: <meter value="3" min="0" max="10">3 out of 10</meter> 3/10</p>
<p>Site Completion: <meter value="0.7">70%</meter> 70%</p>

Attributes

form
Specifies one or more forms the meter element belongs to.
high
Specifies the range that is considered to be a high value.
low
Specifies the range that is considered to be a low value.
max
Specifies the maximum value of the range.
min
Specifies the minimum value of the range.
optimum
Specifies what value is the optimal value for the gauge.
value
Required. Specifies the current value of the gauge.

Global Attributes

The <meter> tag also supports the Global Attributes in HTML5

Event Attributes

The <meter> tag also supports the Event Attributes in HTML5

Browser Support

The following information will show you the current browser support for the HTML <meter> tag. Hover over a browser icon to see the version that first introduced support for this HTML tag.

This tag is supported in some modern browsers, but not all.
Desktop
Chrome
Edge
Firefox
Opera
Safari
Tablets & Mobile
Chrome Android
Firefox Android
Opera Android
Safari iOS
Samsung Internet
Android WebView
-

Last updated by CSSPortal on: 26th December 2025

If this site has been useful, we’d love your support! Consider buying us a coffee to keep things going strong!