HTML <meter> with value Attribute

You are Here:

HTML <meter> with value Attribute

The value attribute specifies the value to be displayed in the meter.

Condition

The following are the few conditions to be satisfied while specifying a value to the value attribute.

  • The value must be between the minimum value (min attribute) and the maximum value(max attribute).
  • If they are specified. If unspecified or malformed, the value is 0.
  • If specified, but not within the range given by the min attribute (min attribute) and max attribute (max attribute), the value is equal to the nearest end of the range.

Example

HTML Online Editor
<!DOCTYPE html> <html> <body> <p>Car speed 40 mph - 70 mph is normal.</p> <p>Honda Speed(60 mph) :<meter min="0" max="100" value="60"></meter></p> </body> </html>

Attribute Value

ValueExplanation
numberSpecifies a floating point number to be displayed in the meter.

Reminder

Hi Developers, we almost covered 99.5% of HTML Tutorials with examples for quick and easy learning.

We are working to cover every Single Concept in HTML.

Please do google search for:

Join Our Channel

Join our telegram channel to get an instant update on depreciation and new features on HTML, CSS, JavaScript, jQuery, Node.js, PHP and Python.

This channel is primarily useful for Full Stack Web Developer.

Share this Page

Meet the Author