Get your own website Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<body>
<h1>The output form attribute</h1>
<form action="https://www.w3schools.com/action_page.php" id="numform" oninput="x.value=parseInt(a.value)+parseInt(b.value)">
<input type="range" id="a" name="a" value="50">
+ <input type="number" id="b" name="b" value="25">
<br><br>
<input type="submit">
</form>
<p>The output element below is outside the form, but still a part of it.</p>
<output form="numform" id="x" name="x" for="a+b"></output>
<p><strong>Note:</strong> The form attribute is not supported in any of the major browsers.</p>
</body>
<!-- Mirrored from www.w3schools.com/tags/tryit.asp?filename=tryhtml5_output_form by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 21 Dec 2022 17:34:11 GMT -->
</html>