Advertisement
Home Open Editor ❯

HTML optimum Attribute

Example

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

Try this code ❯

Meaning

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">


Applies to:

The optimum attribute can be used on the following element:

Element Attribute
<meter> optimum

Advertisement

Attribute Values

Value Description
number Specifies a floating number.
Home Open Editor ❯
Advertisement