Posts

Showing posts with the label output tag

How to use the < output > tag in HTML?

 How to use the <output> tag in HTML? The HTML <output> tag specifies the result of a calculation. Here are the attributes of the <output> tag in HTML − How to write in <output> tag in HTML <html>    <head>       <title>HTML Output Tag</title>    </head>    <body>       <form oninput = "result.value = parseInt(a1.value)+parseInt(a2.value)">          <input type = "range" name = "a1" value = "0" /> +          <input type = "number" name = "a2" value = "5" />  <br />           The output is: <output name = "result"></output>       </form>    </body> </html>