YouTip LogoYouTip

Prop Meter Min

HTML DOM Meter min Property

HTML DOM Meter min Property

Meter Object Reference Meter Object

Example

Change the value of the min attribute in a meter:

document.getElementById("myMeter").min="20";

Try it yourself Β»


Definition and Usage

The min property sets or returns the value of the min attribute of a meter.

The min attribute specifies the lower limit of the meter. The value must be less than the value of the max attribute.

If the min attribute is not specified, the default value is 0.

Tip: The min attribute, together with the max attribute, defines the full range of the meter.


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

The min property is supported in all major browsers except Internet Explorer.

Note: The min property is not supported in Safari 5 and earlier versions.


Syntax

Return the min property:

meterObject.min

Set the min property:

meterObject.min=number

Property Values

Value Description
number Specifies a floating-point number representing the minimum value of the meter. The default value is "0".

Technical Details

Return Value: A number, a floating-point number representing the minimum value of the meter.

More Examples

Example

Get the value of the min attribute in a meter:

var x = document.getElementById("myMeter").min;

The x variable will be:

0

Try it yourself Β»


Related Articles

HTML Reference: HTML <meter> min Attribute


Meter Object Reference Meter Object

← Prop Meter OptimumProp Meter Max β†’