Knowledge baseExam Center
ENEnglish
Choose language13

CKTIS / HTML

high — the high-range threshold of a meter

The high attribute on meter specifies the lower boundary of the high measurement range. It is neither the scale maximum nor an error indicator by itself.

Version: WHATWG HTML Living Standard; index snapshot date recorded separately

Syntax

<meter min="0" max="100" low="20" high="80" value="85">85 / 100</meter>

The high attribute on meter sets the lower boundary of its high range. max defines the scale maximum, while value is the current measurement. Use meter for measurements within a known range; use progress for task progress.

A specified high must be a valid floating-point number within the minimum and maximum, and no smaller than low when supplied. The default range is 0–1. If high is omitted or cannot be parsed, its effective threshold is the maximum. Browsers clamp a parsed threshold between the effective low and maximum; this recovery does not make invalid markup conforming.

optimum identifies the desirable region: below low, between low and high (including the boundaries), or above high. A high reading is therefore not necessarily good. In the example, optimum="10" favors the lower region, while value="85" exceeds high="80". The DOM property meter.high returns the effective threshold.

Examples

<!doctype html>
<html lang="en">
<meta charset="utf-8">
<title>meter high</title>
<label for="level">Level:</label>
<meter id="level" min="0" max="100" low="20" high="80" optimum="10" value="85">85 / 100</meter>
<pre id="result"></pre>
<script>
const meter = document.getElementById('level');
document.getElementById('result').textContent =
  `value=${meter.value}; high=${meter.high}`;
</script>
</html>

Result

value=85; high=80

The displayed code and declared result were verified in an isolated environment using the method recorded in the verification evidence for this exact version.

Sources