<!DOCTYPE html>
<html>
<head>
<title>HTML output tag</title>
</head>
<body>
<form oninput="result.value=parseInt(a.value)+parseInt(b.value);">
Value 1. <input type="number" name="a" value="25"/><br />
+ <br />
Value 2. <input type="number" name="b" value="65"/> <br />
= <br />
Output is <output name="result">90</output>
</form>
</body>
</html>