html5<meter> tag


  Translation results:

meter

UK[ˈmi:tə(r)] US[ˈmitɚ]

n.Meter; meter

v. Measure with a meter

html5<meter> tagsyntax

Function: The <meter> tag defines weights and measures. Use only for measurements with known maximum and minimum values.

Parameters:

AttributeValueDescription
highnumber Defines at which point the value of the metric is located, which is defined as a high value.
lownumber Defines at which point the value of the metric is located, which is defined as a low value.
maxnumberDefine the maximum value. The default value is 1.
minnumberDefine the minimum value. The default value is 0.
optimumnumber

Defines what metric value is the best value.

If the value is higher than the "high" attribute, it means that the higher the value, the better.

If the value is lower than the value of the "low" attribute, it means that the lower the value, the better.

valuenumber Defines the value of the metric.

html5<meter> tagexample

<!DOCTYPE html>
<html>
<body>

<p>显示度量值:</p>
<meter value="3" min="0" max="10">3/10</meter><br>
<meter value="0.6">60%</meter>

<p><b>注释:</b>Internet Explorer 不支持 meter 标签。</p>

</body>
</html>
Run instance »

Click the "Run instance" button to view the online instance

Popular Recommendations

Home

Videos

Q&A