The HTML5 <output> tag has to be placed within an HTML document if the calculation result has to be represented. The calculation pertains to those similar to what the script does.
The HTML5 <output> tag is a new tag in HTML5. It is also compatible with web browsers like Safari, Opera, Firefox and Goole Chrome. However, this is not accepted in Internet Explorer.
The use of HTML5 <output> tag is not limited since it provides support for both the Events Attributes and Global Attributes in HTML5.
There are three attributes for the HTML5 <output> tag. These are the following:
|
Attribute
|
Value
|
Description
|
|
for
|
element_id
|
This is important in showing the relationship between the calculation result and
the various elements that were utilized to come up with the calculation
|
|
form
|
form_id
|
It determines one or more forms wherein the output element has to work along
with
|
|
name
|
name
|
It is used in adding a name which is specific for the output element
|