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.high
double
representing the value of the high boundary, reflecting the high
attribute.HTMLMeterElement.low
double
representing the value of the low boundary, reflecting the low
attribute.HTMLMeterElement.max
double
representing the maximum value, reflecting the max
attribute.HTMLMeterElement.min
double
representing the minimum value, reflecting the min
attribute.HTMLMeterElement.optimum
double
representing the optimum, reflecting the optimum
attribute.HTMLMeterElement.value
double
representing the currrent value, reflecting the value
attribute.HTMLMeterElement.labels
Read 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 | No change |
HTML 5.1 The definition of 'HTMLMeterElement' in that specification. | Recommendation | No change |
HTML5 The definition of 'HTMLMeterElement' in that specification. | Recommendation | Initial definition |
Feature | Chrome | Edge | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|---|
Basic support | 6.0 | (Yes) | 16 (16) | 10.0 | 11.0 | 5.2 |
labels | ? | No support | 56 (56)[1] | ? | ? | ? |
Feature | Android | Edge | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|---|
Basic support | ? | (Yes) | 16.0 (16) | ? | 11.0 | ? |
labels | ? | No support | 56.0 (56)[1] | ? | ? | ? |
[1] Implemented in bug 556743.
<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