HTML <meter> optimumAttribute

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

Examples

A gauge with an optimum value of 0.5:

<meter value="0.3" high="0.9" low="0.1" optimum="0.5"></meter>

Try it Yourself »

Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

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


Definition and Usage

The optimum attribute specifies the range where the gauge value is considered the optimum value.


Differences between HTML 4.01 and HTML5

The <meter> tag is a new tag in HTML5.


Syntax

<meter optimum="number">

Attribute Values

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


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