Progress, Meter and Output
What Is It?
Progress shows how much of a task is done. Meter shows a value in a range. Output holds a calculated result.
What the Tags Mean
progress: task completion.meter: a measurement.output: a result.valueandmax: the current and maximum values.
Example 1
Save each example as index.html and open it in your browser. Each code block is a complete page.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Progress, Meter and Output</title>
</head>
<body>
<label for="download">Download progress</label>
<progress id="download" value="30" max="100">30%</progress>
</body>
</html>Browser preview
What you see: The progress bar is about 30% full. It does not update on its own.
Example 2: Another Use
Use meter for a room’s current occupancy.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Progress, Meter and Output</title>
</head>
<body>
<label for="room">People in the room</label>
<meter id="room" min="0" max="20" value="8">8 of 20</meter>
</body>
</html>Browser preview
Simple Tip
A progress bar needs JavaScript or server updates to follow a real task.
Try It Yourself
Change the progress value to 75.