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.