HTML5 <output>

HTML5 <output>

//perform a calculation and show the result in an <output> element

<form action="/action_page.php"
  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">
  =
  <output name="x" for="a b"></output>
  <br><br>
  <input type="submit">
</form>

Represents the result of a calculation (like one performed by a script).

Related concepts

HTML5 <output> — Structure map

Clickable & Draggable!

HTML5 <output> — Related pages: