<output> Redirect 1

Introduced in HTML5

Summary

The HTML <output> element represents the result of a calculation or user action.

Attributes

This element includes the global attributes.

for
A list of IDs of other elements, indicating that those elements contributed input values to (or otherwise affected) the calculation.
form
The form element that this element is associated with (its "form owner"). The value of the attribute must be an ID of a form element in the same document. If this attribute is not specified, the output element must be a descendant of a form element. This attribute enables you to place output elements anywhere within a document, not just as descendants of their form elements.
name
The name of the element.

Example

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

Specifications

Specification Status Comment
WHATWG HTML Living Standard Living Standard  
HTML5 Candidate Recommendation  

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support 10 4.0 (2.0) 10 11 nightly
Feature Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support ? 4.0 (2.0) ? ? ?

See also

 

Document Tags and Contributors

Contributors to this page: Sheppy
Last updated by: Sheppy,