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

HTML Referenzhandbuch

Vollständiges Verzeichnis der HTML-Tags

HTML-Meter-Max-Attribut

Das Attribut max legt das obere Limit des Meters fest, der Wert von max muss größer als der Wert von min sein. Wenn nicht angegeben, ist der Standardwert1。

 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 it out ‹/›

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。

Hint: 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 that is the maximum value of the gauge. The default value is “ 1。
 HTML <meter> Tag