We're looking for a user researcher to understand the needs of developers and designers. Is this you or someone you know? Check out the post: https://mzl.la/2IGzdXS

Nos bénévoles n'ont pas encore traduit cet article en Français. Inscrivez-vous et aidez-nous à réaliser cette tâche !
Vous pouvez également lire cet article en English (US).

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.

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 lowattribute.
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 currrent value, reflecting the value attribute.
HTMLMeterElement.labelsRead only
A NodeList of <label> elements that are associated with the element.

Methods

This interface does not implement any specific methods but inherits methods from its parent, HTMLElement.

Specifications

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

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support6 Yes1610115
high6131610115
low6131610115
max6131610115
min6131610115
optimum6131610115
value6131610115
labels ? No56 ? ? ?
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support ? ? Yes1611 ? ?
high ? ? Yes1611 ? ?
low ? ? Yes1611 ? ?
max ? ? Yes1611 ? ?
min ? ? Yes1611 ? ?
optimum ? ? Yes1611 ? ?
value ? ? Yes1611 ? ?
labels ? ? No56 ? ? ?

See also

  • The HTML element implementing this interface: <meter>

Étiquettes et contributeurs liés au document

Dernière mise à jour par : ExE-Boss,