Skip to content
Related Articles

Related Articles

HTML | <meter> high Attribute
  • Last Updated : 19 Jun, 2019


The HTML high Attribute is used to specify the range where the value of gauge is considered to be of high value.
The value of the high attribute would be less than the max attribute but more than the min and low attribute values. It can be used with the <meter> Element.

Syntax:

<meter high="number">

Attribute Values:

  • number: It contains the Floating point number which is considered to be a high value.

Example 1: This Example illustrates the use of high attribute in meter Element.




<!DOCTYPE html>
<html>
  
<head>
    <title>
        HTML | meter high attribute
    </title>
</head>
  
<body style="text-align:center;">
    <h1 style="color:green;">GeeksforGeeks</h1>
    <h2>HTML | <meter> high Attribute:</h2>
    Sachin's score:
    <meter value="2" min="0" max="10" high="6">
        2 out of 10
    </meter>
    <br
    Laxman's score:
    <meter value="0.6" max="1.0" min="0" high="0.6">
        60% from 100%
    </meter>
</body>
  
</html>


Output:



Example 2:




<!DOCTYPE html>
<html>
  
<head>
    <title>
        HTML | meter high attribute
    </title>
    <style>
        meter {
            width: 400px;
        }
    </style>
</head>
  
<body style="text-align:center;">
    <h1 style="color:green;">GeeksforGeeks</h1>
    <h2>HTML | <meter> high Attribute:</h2>
    <strong>
    Percentage overall site traffic from each channel (%search):
    </strong>
    <p>programiz.com:
        <meter min="0" low="40" high="99" max="100" value="91.8">
        </meter> 91.8%
    </p>
    <p style="color:green;">geeksforgeeks.org:
        <meter min="0" low="40" high="99" max="100" value="90.7">
        </meter> 90.7%
    </p>
    <p>tutorialspoint.com:
        <meter min="0" low="40" high="99" max="100" value="88.6">
        </meter> 88.6%
    </p>
    <p>cplusplus.com:
        <meter min="0" low="40" high="99" max="100" value="86.7">
        </meter> 86.7%
    </p>
    <p>javatpoint.com:
        <meter min="0" low="40" high="99" max="100" value="79.2">
        </meter> 79.2%
    </p>
  
</body>
  
</html>


Output:

    Supported Browsers:

  • Google Chrome 8.0 or above
  • Firefox 6.0 or above
  • Opera 11.0 or above
  • Safari 6.0 or above
My Personal Notes arrow_drop_up
Recommended Articles
Page :