Export to GitHub

doctype-mirror - MeterElement.wiki


You are here: Home > HTML Reference > Elements > meter element

Usage

The meter element represents a scalar measurement within a known range, or a fractional value; for example disk usage, the relevance of a query result, or the fraction of a voting population to have selected a particular candidate. This is also known in some programming contexts as a "gauge."

The following examples all represent a measurement of three quarters (of the maximum of whatever is being measured):

<meter>75%</meter> <meter>3/4</meter> <meter>6 blocks used (out of 8 total)</meter> <meter>max: 100; current: 75</meter> <meter><object data="graph75.png">0.75</object></meter> <meter min="0" max="100" value="75"></meter>

Attributes

  • value
  • min
  • low
  • high
  • max
  • optimum
  • common attributes

Browser compatibility

Compatibility table legend

| Test | IE8 | IE7 | IE6 | FF3 | FF2 | Saf3 | Op9 | Chrome | |:---------|:--------|:--------|:--------|:--------|:--------|:---------|:--------|:-----------| | appears in DOM | Y | Y | Y | Y | Y | Y | Y | Y | | applies style | N | Y | Y | Y | Y | Y | Y | Y |

Further reading