TheDeveloperBlog.com

Home | Contact Us

C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML

HTML meter tag

HTML meter tag with examples, html5, forms, input, text, anchor, image, heading, marquee, textarea, paragraph, title, quotes, code etc.

<< Back to HTML

HTML Meter Tag

HTML <meter> tag is used to measure data within a given range. It defines a scalar measurement with range. It is also known as a gause.

It should be used to display disk usage, voting population etc.

The HTML meter tag is new in HTML5 so you must use new browsers.


Attributes of HTML Meter Tag

HTML <meter> tag supports the global and event attributes as well as some specific attributes.

AttributesDescription
valueIt is a mandatory attribute which is used to specify a value in numbers. The number may be integer or floating point number.
formIt specifies one or more forms to which meter element belongs to.
highIt specifies a range that is considered as high value.
lowIt specifies a range that is considered as low value.
maxIt specifies the maximum value defined in the range.
minIt specifies the minimum value defined in the range.
optimumIt specifies the optimum value for the gauge.It is an optional attribute.

HTML Meter Tag Example

Let's see the progress example with min, max and value attributes.

<p>Display a gauge:</p>
<meter value="30" min="1" max="100">30 out of 100</meter><br>
<meter value="0.8">80%</meter>
Test it Now

Output:

Display a gauge:

30 out of 100
80%

Styling Meter

You can apply CSS code on meter tag.

meter{
  width: 300px;
  height: 30px;
}
Test it Now

Output:

30 out of 100

Supporting Browsers

Elementchrome browser Chromeie browser IEfirefox browser Firefoxopera browser Operasafari browser Safari
<meter>YesYesYesYesYes
Next TopicHTML nav Tag




Related Links:


Related Links

Adjectives Ado Ai Android Angular Antonyms Apache Articles Asp Autocad Automata Aws Azure Basic Binary Bitcoin Blockchain C Cassandra Change Coa Computer Control Cpp Create Creating C-Sharp Cyber Daa Data Dbms Deletion Devops Difference Discrete Es6 Ethical Examples Features Firebase Flutter Fs Git Go Hbase History Hive Hiveql How Html Idioms Insertion Installing Ios Java Joomla Js Kafka Kali Laravel Logical Machine Matlab Matrix Mongodb Mysql One Opencv Oracle Ordering Os Pandas Php Pig Pl Postgresql Powershell Prepositions Program Python React Ruby Scala Selecting Selenium Sentence Seo Sharepoint Software Spellings Spotting Spring Sql Sqlite Sqoop Svn Swift Synonyms Talend Testng Types Uml Unity Vbnet Verbal Webdriver What Wpf