max attribute | max property

Specifies the upper bound of a meter element.

Syntax

HTML
<element max="p" ... >

 

Property values

Type: Number

A valid floating point that specifies the upper bound of a meter element.

Standards information

Remarks

The value of the max attribute must be greater than the min attribute.

If the value of the max attribute is not specified, by default, it will be 1.

Examples

In this example, because the max attribute is set to 100, the meter element must be set to a value that is equal to or less than 100. Based on the values of the min attribute and the max attribute, the meter element is set to a value of 30.


<meter value="30" min="0" max="100"></meter>

See also

meter

 

 

Show: