Description:

The HTML <output> tag is used for representing the result of a calculation, such as one performed by a script.

Example Code:
<form oninput="x.value=parseInt(a.value)+parseInt(b.value)">0
  <input type="range" id="a" value="50">100
  + <input type="number" id="b" value="50">
  = <output name="x" for="a b"></output>
</form>
Result:

Attributes:
Attribute Definition
for Specifies the relationship between the result of the calculation, and the elements used in the calculation
form Associates the output with a form
name Specifies the name of this element
Global Attributes:

The <output> tag also supports the Global Attributes in HTML5

Event Attributes:

The <output> tag also supports the Event Attributes in HTML5



Last updated on 2 August 2018 By Rene Spronk

View All HTML Tags

Errors? Please help to keep this list up to date, If you find any errors, please contact us, so that we can get them fixed.