Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML output for attribute

HTML for attribute

HTML output Tag Reference HTML tag

Example

Displaying the calculation result in the lt;output> element:

0

100

+

=

Try it »


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

The Firefox, Opera, Chrome, and Safari browsers all support the for attribute.

**Note:** The Internet Explorer browser does not support tag.


Definition and Usage

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


Differences between HTML 4.01 and HTML5

The 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 of the calculation.

HTML output Tag Reference HTML tag