Horje

How to create HTML <output> name Attribute

It performs a calculation and show the result in an <output> element.

index.html
Example: HTML
<form oninput="x.value=parseInt(a.value)+parseInt(b.value)">
<input type="range" id="a" value="50">
+<input type="number" id="b" value="25">
=<output name="x" for="a b"></output>
</form>

Output should be:

How to create HTML <output> name Attribute




Type:
html
Category:
Web Tutorial
Sub Category:
HTML Tag
Uploaded by:
Admin