ExampleSection

by Thomas Smalls

HTML

<!-- Learn about this code on MDN: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/output -->

<form oninput="result.value=parseInt(a.value)+parseInt(b.value)">
  <input type="range" name="b" value="30" /> +
  <input type="number" name="a" value="10" /> =
  <output name="result">60</output>
</form>