<output>
HTML <output> Element Reference
The HTML <output> element represents the result of a calculation or user action.
Categories
- Forms
Tag omission
Consult the HTML Living Standard for the precise tag-omission rules.
Content model
- Detailed content-model guidance will be added to this reference.
Attributes
Examples
Example
A practical output element example.
<form oninput="result.value = Number(a.value) + Number(b.value)">
<input id="a" type="number" value="2"> +
<input id="b" type="number" value="3"> =
<output name="result" for="a b">5</output>
</form>