Skip to content
Related Articles
Open in App
Not now

Related Articles

HTML | <output> name Attribute

Improve Article
Save Article
  • Last Updated : 19 Jul, 2022
Improve Article
Save Article

The HTML <output> name Attribute is used to specify a name for a <output> element. It is used to reference the form-data after submitting the form or to reference the element in a JavaScript. 


<Output name="text"> 

Attribute Values: It contains the value i.e name which specify the name for the <Output> element. 



<!DOCTYPE html>
        HTML Output name Attribute
        <h1 style="color=green">
        <h2>HTML Output name Attribute</h2>
        <form oninput="sumresult.value = parseInt(A.value)
                + parseInt(B.value) + parseInt(C.value)">
            <input type="number"
                   value="50" /> +
            <input type="range"
                   value="0" /> +
            <input type="number"
                   value="30" />
            <br> Result:
            <output name="sumresult"></output>



Supported Browsers:

  • Google Chrome 10.0
  • Firefox 4.0
  • Edge 18.0
  • Opera 11.0
  • Apple Safari 7.0

My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!