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>

Comments

Last 7 Days

How to use referrerpolicy Attribute value ( no-referrer-when-downgrade ) with < iframe > tag in HTML ? with example

How to use autoplay and mute attribute with < video > tag in HTML for youtube ? with example

How to use Local Variable for whose values are present till function is executing in solidity ?

How to add Amazon website inside iframe?

How to use comments in Solidity programming language ?

How to use string in Solidity programming language ?

How to use arrays in Solidity programming language ?