HTML meter tag
HTML <meter> tag represents the completion of a task in the form of a bar for known range value. For instance, the completion of the charging of a battery.
<p> Allen' weight: <meter min=0 max=150 value=70 title=kilogram> 70 </meter> </p> <p> Cary's weight: <meter min=0 max=150 value=100 title=kilogram> 100 </meter> </p></>
Tag UsesSpecific uses of <meter> tag
Following are the uses of meter
- the fraction of the voting population
- the fractional value
- disk usage
Both opening and closing tags are necessary for the <meter> element.
All the global attributes are applicable on the meter element.
Tip: If we don't know the range, then we should not use this element. In this case the progress element is a more suitable choice. For example, the ratio of educated people if we don't know max value of population
Note: if we don't specify the high and low attributes, then the range is from 0 to 1
Was this article helpful?