HTML <output> Tag Last Updated : 11 Jul, 2025 Comments Improve Suggest changes 4 Likes Like Report The HTML <output> tag is used to represent the result of a calculation performed by the client-side script such as JavaScript. The <output> tag is a new tag in HTML 5, and it requires a starting and ending tag.It also supports the Global Attributes and Event Attributes in HTML. The content within the <output> tag can be manipulated dynamically through JavaScript.Syntax<output> Results... </output>AttributesAttribute ValueDescriptionforThis attribute contains an attribute value element_id which is used to specify the relation between result and calculations.formThis attribute contains an attribute value form_id which is used to specify one or more forms of output elements.nameThis attribute contains an attribute value name that is used to specify the name of the output element.Example 1: In this example, we will see the implementation of output tag with an example. html <!DOCTYPE html> <html lang="en"> <head> <title>Document</title> <style> body { text-align: center; } </style> </head> <body> <h1 style="color: green;"> GeeksforGeeks </h1> <h2> HTML output Tag </h2> <form oninput="sumresult.value = parseInt(A.value) + parseInt(B.value) + parseInt(C.value)"> <input type="number" name="A" value="50" /> + <input type="range" name="B" value="0" /> + <input type="number" name="C" value="30" /> <br> <!-- output tag --> Result: <output name="sumresult"></output> </form> </body> </html> Output: Example 2: In this example, <output> tag is used with for and form attribute. html <!DOCTYPE html> <html lang="en"> <head> <title>Document</title> <style> body { text-align: center; } </style> </head> <body> <h1 style="color: green;"> GeeksforGeeks </h1> <h2> HTML output Tag </h2> <form oninput="sumresult.value = parseInt(A.value) + parseInt(B.value) + parseInt(C.value)"> <input type="number" name="A" value="50" /> + <input type="range" name="B" value="0" /> + <input type="number" name="C" value="50" /> <br /> Submit Result: <!-- output tag --> <output name="sumresult" for="A B C"> </output> <br> <input type="submit"> </form> </body> </html> Output: Supported BrowsersGoogle ChromeEdgeFirefoxOperaSafari Create Quiz Comment S Shubrodeep Banerjee Follow 4 Improve S Shubrodeep Banerjee Follow 4 Improve Article Tags : Web Technologies HTML HTML-Tags Explore HTML BasicsHTML Introduction4 min readHTML Editors4 min readHTML Basics7 min readStructure & ElementsHTML Elements4 min readHTML Attributes7 min readHTML Headings3 min readHTML Paragraphs3 min readHTML Text Formatting4 min readHTML Block and Inline Elements3 min readHTML Charsets4 min readListsHTML Lists3 min readHTML Ordered Lists5 min readHTML Unordered Lists4 min readHTML Description Lists3 min readVisuals & MediaHTML Colors11 min readHTML Links Hyperlinks2 min readHTML Images7 min readHTML Favicon4 min readHTML Video4 min readLayouts & DesignsHTML Tables10 min readHTML Iframes4 min readHTML Layout4 min readHTML File Paths3 min readProjects & Advanced TopicsHTML Forms5 min readHTML5 Semantics5 min readHTML URL Encoding4 min readHTML Responsive Web Design11 min readTop 10 Projects For Beginners To Practice HTML and CSS Skills8 min readTutorial ReferencesHTML Tags - A to Z List15+ min readHTML Attributes Complete Reference8 min readHTML Global Attributes5 min readHTML5 Complete Reference8 min readHTML5 MathML Complete Reference3 min readHTML DOM Complete Reference15+ min readHTML DOM Audio/Video Complete Reference2 min readSVG Element Complete Reference5 min readSVG Attribute Complete Reference8 min readSVG Property Complete Reference7 min readHTML Canvas Complete Reference4 min read Like