HTML4 HTML5
Used to represent a scalar measurement within a known range or a fractional value (e.g., disk usage, battery charge level, or a test score). Note: Do not use this tag to indicate the progress of a task (use the <progress> tag for this purpose).
Both opening and closing tags are required.
Attributes:
value – (required) the current measured value.min – the lower bound of the range (defaults to 0).max – the upper bound of the range (defaults to 1).low – the upper bound of the range considered to be a "low" value.high – the lower bound of the range considered to be a "high" value.optimum – the value considered to be optimal within the given range.class, id, and style are also supported.Code:
The browser will render this code as follows: