HTML
x
1
2
<html>
3
<body>
4
5
<h2>The output Element</h2>
6
<p>The output element represents the result of a calculation.</p>
7
8
<form action="/action_page.php"
9
oninput="x.value=parseInt(a.value)+parseInt(b.value)">
10
0
11
<input type="range" id="a" name="a" value="50">
12
100 +
13
<input type="number" id="b" name="b" value="50">
14
=
15
<output name="x" for="a b"></output>
16
<br><br>
17
<input type="submit">
18
</form>
19
20
<p><strong>Note:</strong> The output element is not supported in Edge prior version 13.</p>
21
22
</body>
23
</html>
24
CSS
1
1
JavaScript
1
1
Output: