HTML <meter> Tag Definition and Usage The <meter> tag defines a scalar measurement within a known range, or a fractional value. This is also known as a gauge. Examples: Disk usage, the relevance of a query result, etc. Note: The <meter> tag should not be used to indicate progress (as in a progress bar). For progress bars, use the <progress> tag. Tip: Always add the <label> tag for best accessibility practices! Example Use the meter element to measure data within a given range (a gauge): < label for ="disk_c"> Disk usage C: < /label > < meter id ="disk_c" value ="2" min ="0" max ="10"> 2 out of 10 < /meter >< br > < label for ="disk_d"> Disk usage D: < /label > < meter id ="disk_d" value ="0.6"> 60% < /meter >
Comments
Post a Comment