progress represents task completion, meter represents a measured value in a known range, and output represents a calculation result.
HTML progress, meter, and output: three different value relationships
Use it for a real task
A receipt job has completed 29 of 47 records. A separate confidence score is 0.82 on a zero-to-one scale. These are not interchangeable: progress communicates work remaining, while meter communicates a gauge. The output shows a computed amount; its value must be updated by application code or supplied by the server, because HTML does not perform the calculation.
<p>Export completion: <progress value="29" max="47">29 of 47</progress></p>
<p>Match confidence: <meter min="0" max="1" value="0.82">0.82</meter></p>
<form action="/receipts/estimate" method="get">
<label for="receipt-total">Receipt total</label>
<input id="receipt-total" name="total" type="number" min="0" step="0.01">
<output for="receipt-total" name="estimate">Awaiting calculation</output>
<button type="submit">Calculate</button>
</form>What the markup guarantees
The output text here is a placeholder until the endpoint returns a result. Keep a visible text equivalent for the meter's meaning and avoid assuming every browser draws these controls in the same way.
Cost and limits
Native indicators have little client cost. The backend cost is tracking accurate task state; stale numbers are a product defect even with correct HTML.
Common Mistakes
- Do not use progress as a generic score gauge.
- Do not imply output calculates automatically.
- Do not omit the max when a determinate task has a defined total.
Connected lessons
- HTML constraint validation: improve feedback without trusting the browser
- HTML select and textarea: preserve meaningful values and editable text
- HTML receipt review form project: one native flow with clear server boundaries
Related: HTML range input: capture an approximate bounded choice.
