The HTML <meter> elements expose the HTMLMeterElement interface, which provides special properties and methods (beyond the HTMLElement object interface they also have available to them by inheritance) for manipulating the layout and presentation of <meter> elements.
Also inherits properties from its parent, HTMLElement.
HTMLMeterElement.highdouble representing the value of the high boundary, reflecting the high attribute.HTMLMeterElement.lowdouble representing the value of the low boundary, reflecting the lowattribute.HTMLMeterElement.maxdouble representing the maximum value, reflecting the max attribute.HTMLMeterElement.mindouble representing the minimum value, reflecting the min attribute.HTMLMeterElement.optimumdouble representing the optimum, reflecting the optimum attribute.HTMLMeterElement.valuedouble representing the currrent value, reflecting the value attribute.HTMLMeterElement.labelsRead only
NodeList of <label> elements that are associated with the element.This interface does not implement any specific methods but inherits methods from its parent, HTMLElement.
| Specification | Status | Comment |
|---|---|---|
| HTML Living Standard The definition of 'HTMLMeterElement' in that specification. | Living Standard | |
| HTML 5.1 The definition of 'HTMLMeterElement' in that specification. | Recommendation | No change |
| HTML5 The definition of 'HTMLMeterElement' in that specification. | Recommendation | Initial definition |
| Desktop | ||||||
|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | |
| Basic support | 6 | Yes | 16 | 10 | 11 | 5 |
high |
6 | 13 | 16 | 10 | 11 | 5 |
low |
6 | 13 | 16 | 10 | 11 | 5 |
max |
6 | 13 | 16 | 10 | 11 | 5 |
min |
6 | 13 | 16 | 10 | 11 | 5 |
optimum |
6 | 13 | 16 | 10 | 11 | 5 |
value |
6 | 13 | 16 | 10 | 11 | 5 |
labels |
? | No | 56 | ? | ? | ? |
| Mobile | |||||||
|---|---|---|---|---|---|---|---|
| Android webview | Chrome for Android | Edge Mobile | Firefox for Android | Opera for Android | iOS Safari | Samsung Internet | |
| Basic support | ? | ? | Yes | 16 | 11 | ? | ? |
high |
? | ? | Yes | 16 | 11 | ? | ? |
low |
? | ? | Yes | 16 | 11 | ? | ? |
max |
? | ? | Yes | 16 | 11 | ? | ? |
min |
? | ? | Yes | 16 | 11 | ? | ? |
optimum |
? | ? | Yes | 16 | 11 | ? | ? |
value |
? | ? | Yes | 16 | 11 | ? | ? |
labels |
? | ? | No | 56 | ? | ? | ? |
<meter>
© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/HTMLMeterElement