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:
- Add a meter in body using meter tag.
- Set the optimum value in meter tag.
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

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 :
08 Mar, 2021
Like Article
Save Article