Open In App

HTML | <meter> name Attribute

Improve
Improve
Like Article
Like
Save
Share
Report

The HTML <meter> name Attribute is used to specify the name attribute of meter element. It is used to reference the form-data after submitting the form or to reference the element in a JavaScript.
Syntax:

<meter name="name">

Attribute Values: It contains a single value name which describes the name of the meter element.

Example: 




<!DOCTYPE html> 
<html
  
<head
    <title
        HTML | meter name attribute 
    </title
</head
  
<body style="text-align:center;"
    <h1
        GeeksforGeeks 
    </h1
      
    <h2
        HTML | Meter name Attribute
    </h2>
      
    Sachin's score: 
    <meter value="5" min="0" name="geeks2"
                max="10" high="6"
        5 out of 10 
    </meter
  
    <br>Laxma sxore: 
    <meter value="0.5" max="1.0" name="geeks3"
            min="0" high="0.6"
        50% from 100% 
    </meter
</body
  
</html>


Output: 
 

Supported Browsers: The browser supported by HTML <meter> name attribute are listed below:

  • Google Chrome
  • Internet Explorer
  • Firefox
  • Safari
  • Opera


Last Updated : 28 Oct, 2020
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads