HTML <meter> max Attribute

The max attribute of the element is used to set the upper bound for . However, the element is used to measure data with a give range like water impurity level and it is set using the min and max attribute.

Syntax

Following is the syntax ?

The num above is a number in floating-point that sets the max attribute of the element.

Example

Let us now see an example to implement the max attribute of the element ?



Water Levels

Impurity Level

TDS Level

Output

This will produce the following output ?

In the above example, we have displayed meter for water levels using the . For maximum value of the meter, we have used the max attribute ?

TDS Level 
Updated on: 2026-03-11T22:50:45+05:30

162 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements