Easy Tutorial
❮ Att Form Novalidate Tag Object ❯

HTML <output> for Attribute

HTML <output> Tag

Example

Display the result of a calculation inside the <output> element:


Browser Support

Firefox, Opera, Chrome, and Safari support the for attribute.

Note: Internet Explorer does not support the <output> tag.


Definition and Usage

The for attribute specifies the relationship between the elements used in the calculation and the result.


Differences Between HTML 4.01 and HTML5

The <output> tag is new in HTML5.


Syntax

Attribute Values

Value Description
element_id Specifies a list of one or more element IDs, separated by spaces. These elements describe the relationship between the elements used in the calculation and the result.

❮ Att Form Novalidate Tag Object ❯