HTML <meter> value Attribute

The value attribute of the element specifies the current value of the gauge. This is a required attribute.

Following is the syntax ?

Above, num represents the current value as a floating-point number.

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

Example



   

Result

   

Girls pass %

   

Boys pass %

Output

In the above example, we have set the pass percentage of girls as well as boys using the element. The current value is set using the value attribute ?

Boys pass %
Updated on: 2026-03-11T22:50:44+05:30

173 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements