×

Save Your Code

If you click the save button, your code will be saved, and you get an URL you can share with others.

By clicking the "Save" button you agree to our terms and conditions.

Report Error

×

Save to Google Drive

If you have a Google account, you can save this code to your Google Drive.

Google will ask you to confirm Google Drive access.

×

Open from Google Drive

If you have saved a file to Google Drive, you can open it here:

Result Size: 625 x 571
x
 
<!DOCTYPE html>
<html>
<body>
<form action="https://www.w3schools.com/action_page.php" id="numform" oninput="x.value=parseInt(a.value)+parseInt(b.value)">0
<input type="range" id="a" name="a" value="50">100
+<input type="number" id="b" name="b" value="50">
<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" name="x" for="a b"></output>
<p><strong>Note:</strong> The form attribute is not supported in IE/Edge</p>
</body>
<!-- Mirrored from www.w3schools.com/tags/tryit.asp?filename=tryhtml5_output_form by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 03:09:59 GMT -->
</html>
×

Report a Problem: