W3Schools.com

HTML5 <meter> Tag

Example

Use the meter element to measure data within a given range (a gauge):

<meter value="2" min="0" max="10">2 out of 10</meter><br />
<meter value="0.6">60%</meter>

Try it yourself »

Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The <meter> tag is currently supported in Opera and Chrome.


Definition and Usage

The <meter> tag defines a scalar measurement within a known range, or a fractional value. This is also known as a gauge.

Examples: Disk usage, the relevance of a query result, etc.

Note: The <meter> tag should not be used to indicate progress (as in a progress bar). For progress bars, use the <progress> tag.


Differences Between HTML 4.01 and HTML5

The <meter> tag is new in HTML5


Attributes

New : New in HTML5.

Attribute Value Description
formNew form_id Specifies one or more forms the <meter> element belongs to
highNew number Specifies the range that is considered to be a high value
lowNew number Specifies the range that is considered to be a low value
maxNew number Specifies the maximum value of the range
minNew number Specifies the minimum value of the range
optimumNew number Specifies what value is the optimal value for the gauge
valueNew number Required. Specifies the current value of the gauge

Global Attributes

The <meter> tag also supports the Global Attributes in HTML5.


Event Attributes

The <meter> tag also supports the Event Attributes in HTML5.


WEB HOSTING
Best Web Hosting
PHP MySQL Hosting
Best Hosting Coupons
UK Reseller Hosting
Cloud Hosting
Top Web Hosting
$7.95/mo SEO Hosting
Premium Website Design
WEB BUILDING
XML Editor - Free Trial!
FREE Website BUILDER
Free Website Templates Free CSS Templates
Make Your Own Website
W3SCHOOLS EXAMS
Get Certified in:
HTML, CSS, JavaScript, XML, PHP, and ASP
W3SCHOOLS BOOKS
New Books:
HTML, CSS
JavaScript, and Ajax
STATISTICS
Browser Statistics
Browser OS
Browser Display
SHARE THIS PAGE