HTML5: How to specify the range that is considered to be a high value?
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.
- Three <p> tags represent paragraphs of text.
- Each <p> tag contains a <meter> element representing the score of a person (Harry, James, and David) with specific range attributes (min, low, high, max, and value).
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.