HTML optimum Attribute

❮ HTML Attributes


<p><label for="score">Your score:</label>
<meter id="score" value="0.3" high="0.9" low="0.1" optimum="05"></meter></p>


The optimum attribute holds a float value that indicates the optimum range of the measurement.

Note: Value must be within the range (as defined by the min attribute and max attribute). When used with the low attribute and high attribute, it gives an indication where along the range is considered preferable.

Standard Syntax

<element optimum="number">

Browser Support


Applies to:

The optimum attribute can be used on the following element:

Element Attribute
<meter> optimum

Attribute Values

Value Description
number Specifies a floating number.
❮ HTML Attributes