HTML < output>
query_builder | Christopher PisaniThe HTML element <output> represents the result of a calculation or user action typically in a form.
Example of the element in action
<form oninput="x.value=parseInt(a.value)+parseInt(b.value)">
0
<input type="range" id="a" value="50">
100 +
<input type="number" id="b" value="50">
=
<output name="x" for="a b"></output>
</form>
Available Attributes
Attribute | Values | Functionality |
---|---|---|
for | element's id | Which element it belongs to |
form | form's id | Which form it belongs to |
name | text | Name for the ouput element |