
- HTML Tutorial
- HTML - Home
- HTML - Overview
- HTML - Basic Tags
- HTML - Elements
- HTML - Attributes
- HTML - Formatting
- HTML - Phrase Tags
- HTML - Meta Tags
- HTML - Comments
- HTML - Images
- HTML - Tables
- HTML - Lists
- HTML - Text Links
- HTML - Image Links
- HTML - Email Links
- HTML - Frames
- HTML - Iframes
- HTML - Blocks
- HTML - Backgrounds
- HTML - Colors
- HTML - Fonts
- HTML - Forms
- HTML - Embed Multimedia
- HTML - Marquees
- HTML - Header
- HTML - Style Sheet
- HTML - Javascript
- HTML - Layouts
- HTML References
- HTML - Tags Reference
- HTML - Attributes Reference
- HTML - Events Reference
- HTML - Fonts Reference
- HTML - ASCII Codes
- ASCII Table Lookup
- HTML - Color Names
- HTML - Entities
- HTML - Fonts Ref
- HTML - Events Ref
- MIME Media Types
- HTML - URL Encoding
- Language ISO Codes
- HTML - Character Encodings
- HTML - Deprecated Tags
HTML value Attribute
The value attribute of the <meter> element specifies the current value of the gauge. This is a required attribute.
Following is the syntax −
<meter value="num">
Above, num represents the current value as a floating-point number.
Let us now see an example to implement the value attribute of the <meter> element −
Example
<!DOCTYPE html> <html> <body> <h2>Result</h2> <p>Girls pass % <meter min="0" low="0" high="100" max="100" value="80"></meter></p> <p>Boys pass %<meter min="0" low="0" high="100" max="100" value="70"></meter></p> </body> </html>
Output
In the above example, we have set the pass percentage of girls as well as boys using the <meter> element. The current value is set using the value attribute −
Boys pass %<meter min="0" low="0" high="100" max="100" value="70"></meter>
- Related Articles
- HTML value Attribute
- HTML value Attribute
- HTML value Attribute
- HTML input value Attribute
- HTML option value Attribute
- HTML maxlength Attribute
- HTML wrap Attribute
- HTML checked Attribute
- HTML datetime Attribute
- HTML coords Attribute
- HTML hreflang Attribute
- HTML cite Attribute
- HTML cite Attribute
- HTML autocomplete Attribute
- HTML max Attribute

Advertisements