<output> tag in HTML5
The <output> tag represents the result of a calculation that is performed by a client-side script.
Important Description
- The <output> tag is new element in HTML5.
- Open and close tag required of <output>.
Example of <output>
Result Look Like
<output> Tag Browser Support
The form attribute of the <output> element is not supported in IE/Edge.
Element |
Chrome |
Edge |
Firefox |
Safari |
Opera |
<output> |
Yes |
Yes |
Yes |
Yes |
Yes |
Version |
10.0 |
13.0 |
4.0 |
5.1 |
11.0 |
Global Attributes
Event Attributes
Attributes
Attribute |
Value |
Description |
for |
element_id |
The relationship between the result of the calculation, and the elements used in the calculation |
form |
form_id |
Specifies one or more forms the output element belongs to |
name |
name |
Defines a name for the output element |