Latest web development tutorials

HTML <meter> tag

Examples

Using the meter display elements given data range:

<meter value="2" min="0" max="10">2 out of 10</meter><br>
<meter value="0.6">60%</meter>

try it"

Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Firefox, Opera, Chrome and Safari 6 Support <meter> tag.


Tag definitions and instructions

<Meter> tag defines weights and measures. Known only used to measure the maximum and minimum values.

For example: disk usage, relevance of search results and the like.

Note: <meter> can not be used as a progress bar, the progress bar <progress> tag.


Differences between HTML 4.01 and HTML5

<Meter> HTML5 is the new label.


Attributes

New: HTML5 new property.

属性 描述
form New form_id 规定 <meter> 元素所属的一个或多个表单。
high New number 规定被界定为高的值的范围。
low New number 规定被界定为低的值的范围。
max New number 规定范围的最大值。
min New number 规定范围的最小值。
optimum New number 规定度量的最优值。
value New number 必需。规定度量的当前值。

Global Properties

<meter> tag supports the global attributes, view complete the property sheet HTML Global Attributes .


Event Properties

<meter> tag supports all HTML event attributes .