+ 1

What is <output> tag in html & when do we use of it?? Or why do we use of that??

1st Mar 2018, 10:53 AM
Sina
Sina - avatar
2 Answers
+ 3
The HTMLĀ <output>Ā tag is used for representing the result of a calculation (such as one performed by a script) or a user action (such as entering data into a form control). The basic tag is written like this :- <output for=" " name=" "></output>Ā  with theĀ nameĀ attribute defining a name for this element, and theĀ for attribute defining the explicit relationship to be made between the result of a calculation and the elements that represent the values that went into the calculation or that otherwise influenced the calculation. TheĀ <output>Ā tag is an inline element and was introduced in HTML 5.
1st Mar 2018, 7:27 PM
Pravin Pandey
Pravin Pandey - avatar
+ 2
Thank you
1st Mar 2018, 7:34 PM
Sina
Sina - avatar