Perform a calculation and show the result in an <output> element:
![]()
The for attribute is supported in Firefox, Opera, Chrome, and Safari.
Note: The <output> tag is not supported in Internet Explorer.
The for attribute specifies the relationship between the result of the calculation, and the elements used in the calculation.
The <output> tag is new in HTML5.
| Value | Description |
|---|---|
| element_id | Specifies a space separated list of ids of one or more elements that specifies the relationship between the result of the calculation, and the elements used in the calculation |
HTML <output> tag
Your message has been sent to W3Schools.