Skip to content
Related Articles

Related Articles

Improve Article
HTML5 <meter> Tag
  • Difficulty Level : Easy
  • Last Updated : 07 May, 2021

It is used to define the measurement of scale in a well-defined range with a frictional value. It is also known as a gauge. It is used in Disk use, relevance query result, etc. 
Syntax: 

<meter attributes...> </meter>

Attributes: This tag contains many attributes which are listed below: 

  • form: It belongs to one or more forms that it belongs too.
  • max: It is used to specify the maximum value of a range.
  • min: It is used to specify the minimum value of a range.
  • high: It is used to specify the range considered to be a high value.
  • low: It is used to specify the range value that is considered to be low.
  • Optimum: It is used to specify the optimum value for the range.
  • value: It is used to specify the required or actual value of the range.

Example: 

html




<!DOCTYPE html>
<html>
    <body>
        <h1>GeeksforGeeks</h1>
        <p>Meter Tag:</p>
  
        Sachin's score: 
        <meter value="5" min="0" max="10">
          5 out of 10
        </meter>
        <br>
        Laxma sxore:
        <meter value="0.5">
          50% from 100% 
        </meter>
    </body>
</html>                                            

Output: 
 

Supported Browsers: 

  • Google Chrome 8.0
  • Internet Explorer 13.0
  • Firefox 6.0
  • Opera 11.0
  • Safari 6.0

Important Note : The meter tag should not be used to indicate progress (as in a progress bar). For progress bars, use the progress tag.
 

My Personal Notes arrow_drop_up
Recommended Articles
Page :