Meter Tag
Advertisements
Meter Tag
<meter>tag are used to measure data within given range. This is also known as a gauge.
Uses of meter tag
Meter tag are use to measure disk usage, same like in you computer show how much a particular drive (on hard disk) full with data.
Attributes of meter
Attributes | value | Description |
---|---|---|
form | form_id | Specifies one or more forms the <meter> element belongs to |
low | number | Specifies the range that is considered to be a low value |
high | number | Specifies the range that is considered to be a high value |
max | number | Specifies the maximum value of the range |
min | number | Specifies the minimum value of the range |
optimum | number | Specifies what value is the optimal value for the gauge |
value | number | Required. Specifies the current value of the gauge |
Note: The <meter> tag should not be used to indicate progress. For progress bars, you can use <progress> tag.
Html5 Example
Example
<!DOCTYPE html> <html> <body> <p>Display a gauge:</p> <meter value="2" min="20" max="100">2 out of 10</meter><br> <meter value="0.7">70%</meter> </body> </html>
Example
Display a gauge:
Browser supported
Element | |||||
<meter> | Yes | Yes | Yes | No | Yes |
Google Advertisment