low attribute | low property

Specifies the low range for a meter element.

HTML5 A vocabulary and associated APIs for HTML and XHTML

 

Syntax

HTML
<element low="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 low attribute must be greater than the value of the min attribute and less than the values of the max and high attributes.

By default, the value of the low attribute is set to 0.

If the value of the low attribute is less than the value of the min attribute, the low boundary is the minimum value.

If the value of the low attribute is greater than the value of the max attribute, the low boundary is the maximum value.

Examples

In this example, the value of the low attribute is set to 30. Any value that is equal to or under 30, and equal to or above 0, will be considered in the low range of this meter element. Because the value is 10, it would fall in the low range. Because the optimum value is greater than the high value, this example will produce a meter with a red bar that is 10% full.


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

See also

meter

 

 

Show: