HTML - Tags - <output>

#98 of 147
output
Next p

 <html>
 <body>
     <form oninput="result.value = 2 * 3.14159 * parseFloat(r.value);">
         <label>Enter radius:</label>
         <input type="number" name="r" value="1" />
         <p>
             <label>Circumference is:</label>
             <output name="result"></output>
         </p>
     </form>
 </body>
 </html>
 

The output element represents the result of a calculation.

A live example:


3.14159


N of

Ads by Google


Ask a question, send a comment, or report a problem - click here to contact me.

© Richard McGrath