HTML5: How to specify what value is the optimal value for the gauge?
Solution :
HTML Code:
Explanation:
- The HTML document starts with a declaration of its type and version (<!DOCTYPE html>).
- The <html> element encloses the entire HTML document.
- The <head> section contains metadata about the document.
- The <meta charset="utf-8"> tag specifies the character encoding for the document as UTF-8.
- The <title> tag sets the title of the document.
- The <body> section contains the content of the document.
- The <p> tag represents a paragraph of text.
- The <meter> element defines a gauge with specific range attributes (value, high, low, and optimum). In this case, the optimum attribute specifies the optimal value for the gauge.
Live Demo:
See the solution in the browser
Supported browser
Yes | Yes | Yes | Yes | Yes |
What is the difficulty level of this exercise?
Test your Programming skills with w3resource's quiz.
- Weekly Trends and Language Statistics
- Weekly Trends and Language Statistics