HTMLMeterElement: min property
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since October 2018.
The min
property of the HTMLMeterElement
interface represents the minimum value of the <meter>
element as a floating-point number. It reflects the element's min
attribute, or 0
if no min
is defined.
This property can also be set directly, for example to set a default value based on some condition.
Value
A number.
Examples
html
<label for="fuel">Current fuel level:</label>
<meter
id="fuel"
min="0"
max="100"
low="15"
high="66"
optimum="80"
value="50"></meter>
js
const meterElement = document.getElementById("fuel");
console.log(meterElement.min); // 0
++meterElement.min;
console.log(meterElement.min); // 1
Specifications
Specification |
---|
HTML # dom-meter-min |
Browser compatibility
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
min |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.