Solution 1 :

You can add class attribute with certain class name for this tag:

`<meter class="over-the-range" id="disk_c" value="2" min="0" max="10">2 out of 10</meter>`

Then you should use elem.className or elem.classList methods for changing class attribute like this:

document.body.classList.add('your-class');

Problem :

I would like to know if it is possible to set some marker on the “meter” tag in HTML5?

      <meter id="signalGreen" min="0"  max="100" value="45"></meter>   

For example, if I want to set marker when the value will pass 90.
Thanks.

Comments

Comment posted by developer.mozilla.org/en-US/docs/Web/API/MutationObserver

You could probably do this with a mutation observer:

By