References

Collection of references for web development.

HTML output tag

Description

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

Attributes

Attribute Value Description
for ID Specifies the ID of the element that the label element is related to.
form ID Specifies the form(s) that the element belongs to.
name string Specifies the name of the element.

Example

<form oninput="output.value=parseInt(a.value)+parseInt(b.value)">
	<input type="range" name="a" value="30"> +
	<input type="number" name="b" value="70"> =
	<output name="output" for="a b"></output>
</form>