Horje

How to add HTML <output> Tag

Perform 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 add HTML <output> Tag




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