HTML <meter> valueAttribute

HTML meter 标签参考手册HTML <meter> Tag

Examples

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

<meter min="0" low="40" high="90" max="100" value="95"></meter>

Try it Yourself »

Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Firefox, Opera, Chrome, and Safari 6 support the value attribute of the <meter> tag.


Definition and Usage

The value attribute is required and specifies the current value of the gauge.

The value of the value attribute must be between the values of the min and max attributes.


Differences between HTML 4.01 and HTML5

The <meter> tag is new in HTML5.


Syntax

<meter value="number">

Attribute Values

Value Description
number Required. Specifies a floating-point number representing the current value of the gauge.


HTML meter 标签参考手册HTML <meter> Tag Other Extensions