English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML reference manual

HTML tag大全

HTML meter max attribute

The 'max' attribute specifies the upper limit of the gauge, the value of the 'max' attribute must be greater than the 'min' attribute value, if not specified, the default value is1

 HTML <meter> tag

Online Example

A gauge with current value and min, max, high, low values:

    <meter min="0" low="40" high="90" max="100" value="95></meter>
Test and see ‹/›

Browser Compatibility

IEFirefoxOperaChromeSafari

Firefox, Opera, Chrome, and Safari 6 Supports the max attribute of the <meter> tag.

Definition and Usage

The max attribute specifies the upper limit of the gauge.

The max attribute value must be greater than the min attribute value.

If not specified, the default value is1

Tip: The max attribute and the min attribute together specify the entire range of the gauge.

HTML 4.01 with HTML5differences

The <meter> tag is an HTML5 in the new tag.

Syntax

<meter max="number">

Attribute value

ValueDescription
numberSpecify a floating-point number, which is the maximum value of the gauge. The default value is “ 1
 HTML <meter> tag