HTML
Example
Displaying the calculation result in the lt;output> element:
Try it »
Browser support





The Firefox, Opera, Chrome, and Safari browsers all support the for attribute.
**Note:** The Internet Explorer browser does not support
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
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