HTML5 Meter label What does that mean? Meter the use of tags

Source: Internet
Author: User
This article introduces the explanations and examples of meter tags in HTML5, as well as the properties of meter tags, and finally meter how weights and measures change color. So let's see this article together.

First of all, we need to know what HTML5 meter tag means first.

<meter> tags define weights and measures. Measures that are used only for the known maximum and minimum values. is a new label in HTML5 that defines the scope of the measure, either in the text of the element or in the Min/max property.

Again, the properties of the HTML5 meter tag:

Take a look at examples of meter tags:

Use the meter element to measure data within a given range (gauge):

<meter value= "3" min= "0" max= "ten" > Three-tenths </meter><meter value= "0.6" >60%</meter>

Meter how weights and measures change color:

To change the color in meter, you need to use five values: min (minimum), Max (max), low, high, value, and Optimum, where the first four values divide the entire progress into 3 intervals.

When value and optimum values are in a range, it will appear green.

Yellow: When the optimum between high and max, value is between low and high, it will show a yellow

When the optimum is between low and high, the value is between min and low, and it appears yellow between high and max.

When the optimum between Min and low, the value values appear yellow between low and high.

Red: When the optimum is between high and max, the value values appear red between min and low.

When the optimum between min and low, value will appear red between high and Max.

When the optimum is in the green area, the value is also in the green area, the whole will show the green

When the optimum is in the green area, the value is in the yellow area and the whole is yellow.

When the optimum is in the green area, the value is in the red area and the whole is red.

When the optimum is in the green area, the Valu value is green in the middle green area.

When the optimum is in the green area, the value values appear yellow between min and low and between high and Max

When the optimum is in the green area, the value is also in the green area, the whole will show the green

When the optimum is in the green area, the value is in the yellow area and the whole is yellow.

When the optimum is in the green area, the value is in the red area and the whole is red.

The above is the whole content of this article, want to see more, Welcome to topic.alibabacloud.com to learn more courses. If you have questions, you can ask them below.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.