HTML | <meter> value Attribute

The <meter> value attribute in HTML is used to specify the current value of the gauge. The specified value must be inbetween the min and max attribute.

Syntax:

<meter value="number">

Attribute Value: This attribute contains single value number which is required. It is used to specify the floating point number that is the current value of the gauge.

Example 1: This example displays the health meter.

filter_none

edit
close

play_arrow

link
brightness_4
code

<!DOCTYPE html>
<html>
    <head>
        <title>
            HTML meter value Attribute
        </title>
    </head>
      
    <body style = "text-align:center">
          
        <h1 style = "color:green;">
            GeeksforGeeks
        </h1>
          
        <h2>
            HTML meter value Attribute
        </h2>
          
        Health: <meter min="0" low="40" high="90"
                        max="100" value="60"></meter>
    </body>
</html>                    

chevron_right


Output:
metervalue

Example 2: This example displays the health meter which is very very low.

filter_none

edit
close

play_arrow

link
brightness_4
code

<!DOCTYPE html>
<html>
    <head>
        <title>
            HTML meter value Attribute
        </title>
    </head>
      
    <body style = "text-align:center">
      
        <h1 style = "color:green;">
            GeeksforGeeks
        </h1>
          
        <h2>
            HTML meter value Attribute
        </h2>
          
        Health: <meter min="0" low="33" high="66" 
            max="100" optimum="80" value="10"></meter>
    </body>
</html>                    

chevron_right


Output:
metervalue

Supported Browsers: The browser supported by <meter> value attribute are listed below:

  • Apple Safari 6.0
  • Google Chrome 8.0
  • Firefox 6.0
  • Opera 11.0


My Personal Notes arrow_drop_up


If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.




Article Tags :
Practice Tags :


Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.