<meter> Tag in HTML

The <meter> tag in HTML represents a scalar measurement within a known range, often used to display a value within a minimum and maximum range. Common examples include showing a disk usage, completion rate, or battery level. The <meter> tag visually indicates the value by filling a portion of the bar.

Key Points on <meter> Tag:

Syntax of <meter> Tag:

Syntax Example

<meter value="value" min="minimum" max="maximum">Display Text</meter>

Example of <meter> Tag in HTML:

This example shows a meter indicating a battery level at 75% within a range of 0 to 100.

Code Example

<meter value="75" min="0" max="100">75% Battery</meter>

Output

75% Battery

Attributes of <meter> Tag:

The <meter> tag is best used for values within a defined range, like ratings, temperatures, or battery levels, providing a simple way to visually represent these measurements.