The html5 tutorials

 
About HTML5
Home
Introduction to HTML5
Features of HTML5
Older versions Vs. HTML5
 
Tags  
source
article
aside
audio
canvas
command
datalist
details
embed
figcaption
figure
footer
header
hgroup
keygen
mark
meter
nav
output
progress
ruby
section
summary
time
video
wbr
 

The <meter> Tag

The <meter> tag is used for measurement purposes. This tag can be used only for measurements that have a predefined minimum and maximum value.

It represents a numeric value in a range which must be pre-specified. A scalar measurement is possible within a known range. The range of the measurement should be defined, either in the tag's text or with the min/max attributes.

Example code:

<html>
  <body>
    <p>Your score is: <meter value="93" min="0" max="100" low="50" high="90" optimum="100">A+</meter></p>
  </body>
</html>

Attributes of Canvas tag

The <keygen> tag has got the following attributes:

Attribute Values Description of the attribute
High number the highest part of the value range.
low number the lowest part of the value range.
max number the maximum value; if not specified then it's 1
min number the minimum allowed value. If not specified then the value is 0
optimum number value between the min and max value and could be greater than the high attribute
value number the actual value parsed out