Dofactory.com
Dofactory.com

HTML <meter> optimum Attribute

The optimum attribute on a <meter> tag sets the optimal value of the meter element.

The optimum is considered to be the ideal value.

Example

#

A optimum attribute on a <meter>.
The gauge has a specfied optimum (ideal) value.

Pressure reading

7/10
<div>Pressure reading</div>

<br />
<meter min="1" max="10" value="7" optimum="5">7/10</meter>

Using optimum

The optimum attribute specifies the optimal value of the gauge.

This value must be within the range of min and max attributes.

The optimum value is the preferred or most desirable value.


Syntax

<meter optimum="number">

Values

#

Value Description
number A whole or floating point number.

Browser support

Here is when optimum support started for each browser:

Chrome
8.0 Dec 2010
Firefox
16.0 Oct 2012
IE/Edge
13.0 Nov 2015
Opera
11.5 May 2011
Safari
6.0 Jul 2012

You may also like

 Back to <meter>

Author: Jack Poorte
Published: Jun 20 2021
Last Reviewed: Sep 30 2023


Quick question: what's your favorite/least favorite part of Dofactory?


Guides