Open In App
Related Articles

HTML | optimum Attribute

Improve Article
Improve
Save Article
Save
Like Article
Like

The optimum attribute in HTML indicates the optimal numeric value for the gauge. It must be within the range i.e between min and max. When it is used with the low and high attribute, it gives an indication where along the range is considered preferable.

Usage: It is used with the <meter> element.

Syntax:  

<meter optimum = "value"></meter>

Attribute Values:  It contains the floating point number which represent the optimal value of the gauge.

Example:  

HTML




<!DOCTYPE html>
<html>
<head>
    <title>HTML optimum Attribute</title>
</head>
<body>
    <h2 style="color: green;">
        HTML optimum Attribute
    </h2>
     
<p>
        optimum value below low and high:
        <meter value="0.6" max="0.9" min="0.1"
            optimum="0.1" high="0.5" low="0.2">
        </meter>
    </p>
 
     
<p>
        optimum value between low and high:
        <meter value="0.6" max="0.9" min="0.1"
            optimum="0.4" high="0.5" low="0.2">
        </meter>
    </p>
 
     
<p>
        optimum value above low and high:
        <meter value="0.6" max="0.9" min="0.1"
            optimum="0.6" high="0.5" low="0.2">
        </meter>
    </p>
 
</body>
</html>


Output:

optimum

Supported Browsers: The browser supported by optimum attribute are listed below:  

  • Google Chrome 6.0
  • Edge 18.0
  • Firefox 16.0
  • Opera 11.0
  • Safari 6.0

Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out - check it out now!

Last Updated : 25 Aug, 2022
Like Article
Save Article
Previous
Next
Similar Reads
Complete Tutorials