+ 1
What is <output> tag in html & when do we use of it?? Or why do we use of that??
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.
+ 2
Thank you