HTML DOM Meter optimum Property Last Updated : 29 Jan, 2024 Summarize Comments Improve Suggest changes Share Like Article Like Report The Meter optimum Property in HTML DOM is used to set or return the value of the optimum attribute in a gauge. The optimum attribute 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 attributes, it indicates where along the range is considered preferable. Syntax: It returns the optimum property.meterObject.optimumIt is used to set the optimum property.meterObject.optimum = numberProperty Values: It contains a numeric value which specifies the floating point number that is the optimum value of the gauge. Return Values: It returns a numeric value which represents the floating point number that is the optimum value of the gauge. Example 1: This example returns a optimum property. HTML <!DOCTYPE html> <html> <head> <title> HTML DOM Meter optimum Property </title> </head> <body style="text-align: center;"> <h1>GeeksforGeeks</h1> <h2>HTML DOM Meter optimum Property</h2> <meter value="0.6" max="0.9" min="0.1" id="GFG" optimum="0.6" high="0.5" low="0.2"> </meter> <br><br> <button onClick="myGeeks()"> Click Here! </button> <p id="result"></p> <script> function myGeeks() { let optimumVal = document .getElementById("GFG").optimum; document.getElementById("result") .innerHTML = optimumVal; } </script> </body> </html> Output: Example 2: This example sets the optimum property. HTML <!DOCTYPE html> <html> <head> <title> HTML DOM Meter optimum Property </title> </head> <body style="text-align: center;"> <h1>GeeksforGeeks</h1> <h2>HTML DOM Meter optimum Property</h2> <meter value="0.6" max="0.9" min="0.1" id="GFG" optimum="0.6" high="0.5" low="0.2"> </meter> <br><br> <button onclick="myGeeks()"> Click Here! </button> <p id="result"></p> <script> function myGeeks() { let optimumVal = document .getElementById("GFG").optimum = "0.8"; document.getElementById("result").innerHTML = "Value of optimum Attribute Changed to " + optimumVal; } </script> </body> </html> Output: Supported Browsers: Chrome 6Firefox 16Edge 18Safari 6Opera 11 Comment More infoAdvertise with us Next Article HTML | DOM Meter max Property M manaschhabra2 Follow Improve Article Tags : Web Technologies HTML HTML-DOM Similar Reads HTML DOM Meter min Property The DOM Meter min Property is used to set or return the value of the min attribute in a gauge. The min attribute specify the lower bound of the gauge. The value of the min attribute must be less than the value of the max attribute. It has a default value which is 0. Syntax: It returns the min prop 2 min read HTML | DOM Meter max Property The DOM Meter max Property is used to set or return the value of the max attribute of a gauge. The max attribute is used to specify the upper bound of the gauge and the value of the max attribute must be greater than the value of the min attribute. It has a default value which is 1. Syntax: It retur 2 min read HTML | DOM Meter low Property The DOM Meter low Property is used to set or return the value of the low attribute in a gauge. The low attribute is used to specify the range where the value of gauge is considered to be low. The value of the low attribute must be greater than the "min", less than the "max" and "high" attribute. Syn 2 min read HTML | DOM Meter high Property The DOM Meter high Property is used to set or return the value of the high attribute in a gauge. The high attribute is used to specify the range where the value of gauge is considered to be of high value. The high value would be less than the max attribute but more than the min and low attribute val 2 min read HTML | DOM Meter value Property The DOM Meter value Property is used to set or return the value of the value attribute in a gauge. The value attribute is used to specify the current value of the gauge. The value should between the min and max attribute values. Syntax: It returns the value property.meterObject.valueIt is used to se 2 min read HTML | DOM meter Object The DOM Meter Object is used to represent the HTML <meter> element. The meter element is accessed by getElementById().Properties: 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 2 min read Like