English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
This article introduces the usage of the HTML meter value attribute, including online examples, browser compatibility, syntax definition, and detailed information about its attribute values.
A gauge with current value and min, max, high, low values:
<!DOCTYPE html> <html> <head> <title>HTML: <meter> value attribute - 基础教程网(oldtoolbag.com)</title> </head> <body> <p>Display a gauge:/p> <p>Anna'score: <meter min="0" low="40" high="90" max="100" value="95></meter></p> <p>Peter'score: <meter min="0" low="40" high="90" max="100" value="65></meter></p> <p>Linda'score: <meter min="0" low="40" high="90" max="100" value="35></meter></p> </body> </html>Test see ‹/›
IEFirefoxOperaChromeSafari
Firefox, Opera, Chrome and Safari 6 Supports the value attribute of the <meter> tag.
The value attribute is required, specifying the current value of the measurement.
The value attribute of the value must be between the value of the min and max attributes.
The <meter> tag is an HTML5 new tag in
<meter value="number">
Value | Description |
---|---|
number | Required. Specifies a floating-point number that is the current value of the gauge. |