HTML <meter> max attribute

Definition and Usage

max Property defines the upper limit of the instrument.

max The property value must be greater than min Property value.

If not specified, the default value is 1.

Tip:max Property is related to min Properties together define the full range of the instrument.

Example

Instrument with current value and minimum, maximum, high, and low values:

<p><label for="anna">Xiaoming's Score:</label>
<meter id="anna" min="0" low="40" high="90" max="100" value="95"></meter></p>
<p><label for="peter">Xiaomei's Score:</label>
<meter id="peter" min="0" low="40" high="90" max="100" value="65"></meter></p>
<p><label for="linda">Xiaofeng's Score:</label>
<meter id="linda" min="0" low="40" high="90" max="100" value="35"></meter></p>

Try It Yourself

Syntax

<meter max="number">

Attribute Value

Value Description
number Specifies a floating-point number as the maximum value of the gauge. The default value is "1".

Browser Support

The numbers in the table indicate the first browser version to fully support this attribute.

Chrome Edge Firefox Safari Opera
Chrome Edge Firefox Safari Opera
8.0 13.0 16.0 6.0 11.5