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.
EventTarget Node Element HTMLElement HTMLMeterElement
Instance properties
Also inherits properties from its parent, HTMLElement
.
HTMLMeterElement.high
A double
representing the value of the high boundary, reflecting the high
attribute.
HTMLMeterElement.low
A double
representing the value of the low boundary, reflecting the low
attribute.
HTMLMeterElement.max
A double
representing the maximum value, reflecting the max
attribute.
HTMLMeterElement.min
A double
representing the minimum value, reflecting the min
attribute.
HTMLMeterElement.optimum
A double
representing the optimum, reflecting the optimum
attribute.
HTMLMeterElement.value
A double
representing the current value, reflecting the value
attribute.
HTMLMeterElement.labels
Read only
A NodeList
of <label>
elements that are associated with the element.
Instance methods
This interface does not implement any specific methods but inherits methods from its parent, HTMLElement
.
Specifications
Browser compatibility
Desktop
Mobile
Chrome
Edge
Firefox
Internet Explorer
Opera
Safari
WebView Android
Chrome Android
Firefox for Android
Opera Android
Safari on IOS
Samsung Internet
HTMLMeterElement
6
12
16
No
11
6
4.4
18
16
11
6
1.0
high
6
13
16
No
11
6
4.4
18
16
11
6
1.0
labels
6
18
56
No
≤12.1
6
4.4
18
56
≤12.1
6
1.0
low
6
13
16
No
11
6
4.4
18
16
11
6
1.0
max
6
13
16
No
11
6
4.4
18
16
11
6
1.0
min
6
13
16
No
11
6
4.4
18
16
11
6
1.0
optimum
6
13
16
No
11
6
4.4
18
16
11
6
1.0
value
6
13
16
No
11
6
4.4
18
16
11
6
1.0
See also
The HTML element implementing this interface: <meter>