Easy Tutorial
❮ Prop Color Disabled Met Canvas Createlineargradient ❯

Meter max Property

Meter Object

Example

Change the value of the max attribute in the gauge:


Definition and Usage

The max property sets or returns the value of the max attribute in the gauge.

The max property specifies the upper limit of the gauge. This value must be greater than the min attribute value.

If the max attribute value is not specified, the default value is 1.

Tip: The max property, along with the min property, defines the full range of the gauge.


Browser Support

All major browsers support the max property except Internet Explorer.

Note: Safari 5 and earlier versions do not support the max property.


Syntax

Return the max property:

Set the max property:

Property Values

Value Description
number Specifies a floating-point number representing the maximum value of the gauge. The default value is "1".

Technical Details

| Return Value: | A number, a floating-point number representing the maximum value of the gauge. | | --- | --- |


More Examples

Example

Return the value of the max attribute in the gauge:

x Output result:


Related Articles

HTML Reference: HTML <meter> max Attribute


Meter Object

❮ Prop Color Disabled Met Canvas Createlineargradient ❯