high attribute | high property

Specifies the high range for a meter element.

HTML5 A vocabulary and associated APIs for HTML and XHTML

 

Syntax

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

 

Property values

Type: Number

A valid floating point that specifies the low position of a meter element.

Standards information

Remarks

The value of the high attribute must be greater than or equal to the value of the min attribute, and less than or equal to the value of the max attribute.

If the low attribute is specified as well, the value of the low attribute must be less than or equal to the value of the high attribute.

By default, the high attribute is set to be 1.

If the value of the high attribute is less than the value of the low attribute, then the high boundary is the low boundary.

If the value of the high attribute is greater than the value of the max attribute, then the high boundary is the max value.

Examples

In this example, the high attribute is set to 90. Any value equal to or above 90 will be considered in the high range of this meter element. Because value is 95, it would fall in the high range. Because the optimum value greater than the high value, this example will produce a meter with a green bar that is 95% full.


<meter value="95" min="0" max="100" low="30" high="90" optimum="100"></meter>

See also

meter

 

 

Show: