Dofactory.com
Dofactory.com
Earn income with your HTML skills
Sign up and we'll send you the best freelance opportunities straight to your inbox.
We're building the largest freelancing marketplace for people like you.
By adding your name & email you agree to our terms, privacy and cookie policies.

HTML <meter> max Attribute

The max attribute on a <meter> tag sets the maximum value for the element.

The max value must be greater than the min value.

Example

#

A max attribute on a <meter> element.
The value of this meter cannot exceed the maximum value specified.

Pressure reading

14/25
<div>Pressure reading</div>

<br />
<meter min="1" max="25" value="14">14/25</meter>

Using max

The max attribute specifies the upper bound or limit of the gauge.

The max value must be greater than the min value.

If not set, the meter element uses 1 as its default maximum value.


Syntax

<meter max="number">

Values

#

Value Description
number The maximum number of the gauge. Default is 1.

Browser support

Here is when max 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>

Last updated on Sep 30, 2023

Earn income with your HTML skills
Sign up and we'll send you the best freelance opportunities straight to your inbox.
We're building the largest freelancing marketplace for people like you.
By adding your name & email you agree to our terms, privacy and cookie policies.

Guides