A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.geeksforgeeks.org/html/how-to-specify-the-optimal-value-for-the-gauge-in-html5/ below:

How to specify the optimal value for the gauge in HTML5?

How to specify the optimal value for the gauge in HTML5?

Last Updated : 08 Mar, 2021

The task is to specify an optimal value for the gauge. The optimal value is used to indicate the range of meters of a meter. The value must be within the range i.e between min and max. 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.

Approach:

Syntax

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

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

Example 1:

HTML
<html>
   <body> 
      <meter value="0.6"
         max="1"
         min="0"
         optimum="0.5"
         high="0.5"
         low="0.2"> 
      </meter> 
   </body>
</html>

Output

Example 2: Same as above just change the optimum value

HTML
<!DOCTYPE html> 
<html>
   <body> 
      <meter value="0.6"
         max="1"
         min="0"
         optimum="0.6"
         high="0.5"
         low="0.2"> 
      </meter> 
   </body>
</html>

Output



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4