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

HTML Reference Manual

HTML Tag Reference

HTML meter min attribute

This article introduces the usage of the HTML meter min attribute, including online examples, browser compatibility, syntax definition, and detailed information about its attribute values.

 HTML <meter> tag

Online Example

A gauge with current value and min value:

<!DOCTYPE html>
<html>
<head>
<title>HTML:<meter> min 属性 - 基础教程网(oldtoolbag.com)</title>
</head>
<body>
<p>Display a gauge:</p>
<p>Anna's score: <meter min="0" low="40" high="90" max="100" value="95></meter></p>
<p>Peter's score: <meter min="0" low="40" high="90" max="100" value="65></meter></p>
<p>Linda&39;s score: <meter min="0" low="40" high="90" max="100" value="35></meter></p>
</body>
</html>
Test to see ‹/›

Browser Compatibility

IEFirefoxOperaChromeSafari

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

Definition and Usage

The min attribute specifies the lower limit of the gauge.

The value of the min attribute must be less than the value of the max attribute.

If not specified, the default value is 0.

Tip: The min attribute and max attribute together specify the entire range of the gauge. If not specified, the default value is 0.

HTML 4.01 with HTML5differences

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

Syntax

<meter min="number">

Attribute value

ValueDescription
numberSpecify a floating-point number, which is the minimum value of the gauge. The default value is '0'.
 HTML <meter> tag