asp.net.ph

Skip Navigation LinksHome > Abakada: Back to Basics > Language References > HTML Elements > METER Element

<meter> Element


Represents a scalar measurement within a known range.HTML 5

HTML Syntax

NOTE: Both start and end tags are required.

Remarks

The <meter> element represents a scalar measurement within a known range, or a fractional value.

Similar to a gauge, the element can be used to represent, for example, disk usage or the fraction of a voting population to have selected a particular candidate.

Six attributes determine the semantics of the gauge represented by the element.

The min attribute specifies the lower bound of the range, and the max attribute specifies the upper bound.

The value attribute denotes the current numeric value, and indicated as the gauge’s “measured” value.

The other three attributes can be used to segment the gauge’s range into low, medium, and high parts, and to indicate which part of the gauge is the optimum part.

The low attribute specifies the the low end of the measured range, and the high attribute specifies the high end of the measured range.

The optimum attribute gives the position that is optimum.

If it is higher than the high mark, then this indicates that the higher the value, the better; if it is lower than the low mark, then it indicates that lower values are better.

if it is in between, then it indicates that neither high nor low values are good.

Attributes

The <meter> element supports the following attributes, in addition to global attributes common to all HTML elements.

AttributeValueDescription
formform_idSpecifies which form the meter element belongs to
highnumberSpecifies the range that is considered to be a high value
lownumberSpecifies the range that is considered to be a low value
maxnumberSpecifies the maximum value of the range
minnumberSpecifies the minimum value of the range. Default value is 0
optimumnumberSpecifies what value is the optimal value for the gauge
valuenumberRequired. Specifies the current value of the gauge

Example

The below shows a simple use of the meter element.

Battery level: <meter min="0" max="100" value="70">70%</meter>

which would render as:

Battery level: 70%

External References

See Also

PROGRESS



Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note