HTML <output> Element Reference

The HTML <output> element represents the result of a calculation or user action.

<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>

Related references

Description

The HTML <output> element represents the result of a calculation or user action.

References

  1. HTML Living Standard: Index of elements
  2. MDN: HTML <output> Element

Similar or alternative tools

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies