The HTML <meter></meter> element was introduced in HTML5. It defines a measurement. It is used only for measurements with a known minimum and maximum value. The range of the measurement must be specified, either in the element's text or with the min/max attributes.
Attributes
| Attribute | Value | Description |
|---|---|---|
| high | number | Defines at which point the measurement's value is consider a high value. |
| low | number | Defines at which point the measurement's value is consider a low value. |
| max | number | Defines the maximum value. Default value is 1.
|
| min | number | Defines the minimum value. Default value is 0.
|
| optimum | number | Defines which of the measurement's value is the best value. If this value is higher then the high attribute's value, it means that the higher the value the better. If this value is lower than the low attribute's value, it means that the lower the value the better.
|
| value | number | Defines the measurement's value. |
HTML example:
<meter min="0" max="10">2</meter><br /> <meter>2 out of 10</meter><br /> <meter>20%</meter>