HTML output tag
HTML <output> tag provides the output of some calculation. The calculated value may be the result of user action. See the example given below to understand.
<form oninput="op.value = x.valueAsNumber - y.valueAsNumber">
<input name="x" type="number" >-
<input name="y" type="number" >=
<output name="op" for="x y"></output>
</form>
</>
Tag omission
Both starting and ending tags are necessary for the output element.
Global Attributes
All the global attributes are applicable on the output element.
Next Previous
Was this article helpful?