meter max Attribute - HTML CSS HTML Tag

HTML CSS examples for HTML Tag:meter

Description

The max attribute sets the upper bound of the gauge which must be greater than the min attribute value.

If unspecified, the default value is 1.

Attribute Values

Value Description
number Specifies a floating point number that is the maximum value of the gauge. Default value is "1"

The following code shows how to create a meter with a current value and min, max, high, and low segments:

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<body>

<p>Display a gauge:</p>
<p>score: <meter min="0" low="40" high="90" max="100" value="95"></meter></p>
</body><!--from   ww w .  j  av  a2s. c  om-->
</html>

Related Tutorials