<meter>
HTML <meter> Tag
Instance
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>php中文网(php.cn)</title> </head> <body> <p>展示给定的数据范围:</p> <meter value="2" min="0" max="10">2 out of 10</meter><br> <meter value="0.6">60%</meter> <p><strong>注意:</strong> IE 浏览器不支持 meter 标签。</p> </body> </html>
Run Example»
Click the "Run Instance" button to view the online instance
Browser support
##Firefox, Opera, Chrome and Safari 6 support the <meter> tag. Tag definition and usage instructions<meter> Tag defines weights and measures. Use only for measurements with known maximum and minimum values. For example: disk usage, correlation of query results, etc.
Note: <meter> cannot be used as a progress bar, progress bar <progress> tag.
The difference between HTML 4.01 and HTML5<meter> are the new tags of HTML5.
Attributes
New: HTML5 new attributes.
Value | Description | |
---|---|---|
New | form_id | Specifies one or more forms to which the <meter> element belongs.|
New | number | Specifies the range of values that are defined as high.|
New | number | Specifies the range of values that are defined as low.|
New | number | The maximum value of the specified range.|
New | number | The minimum value of the specified range.|
New | number | Specifies the optimal value of the metric.|
New | number | Required. Specifies the current value of the metric.
Event attributes<meter> tag supports all HTML event attributes.