Skip to main content

html-tags.com

<output>

The result of a calculation or user action, with built-in live-region behavior.

Baseline: Widely available · Forms

When to use it

For computed totals, scores, conversion results; its for attribute lists the inputs it derives from, and screen readers announce updates.

When not to

Not for static prose — it means 'this value was produced by the page'.

Key attributes

for
space-separated ids of contributing inputs
name
participates in the form

Example

Total: $29.00

<p>Total: <output for='qty price'>$29.00</output></p>
Rendered live above, source below.

Authoritative references