New! My 44-page ebook "CSS in 44 minutes" is out! 😃

Get it now →

# output

Defines the result of a calculation or of user action.

Example: Copy

+ = 11
<form oninput="sum.value = parseInt(a.value) + parseInt(b.value)">
  <input type="number" name="a" value="4">
  +
  <input type="number" name="b" value="7">
  =
  <output name="sum">11</output>
</form>

name

Defines the unique identifier for that input within the form. It allows the server to access each input's value when submitted.

"sum"

The name value must be unique within the context of a <form> container.

It can only contain alphanumeric characters a-z A-Z 0-9 and some special characters like - _… but no space.