HTML Output tag is used to specify the result of the calculation.
The output can be a result of the calculation performed by the script or the result of user interaction with the form submission.
- You should also read the HTML Form tag
Syntax
Below is the result of the calculation of c=a+b. c is the name of Output Tag, a and b are the id's of input elements with type range and number.
Scroll this using your mouse.
Output
Below is the result of the calculation of c=a+b. c is the name of output tag, a and b are the id’s of input elements with type range and number.
Scroll this using your mouse.
List of HTML output tag attributes
Sr. No. | Attribute options | Description |
---|---|---|
1 | for | Specify the relationship between the result and inputs. The value of the for attribute can be a list of id’s of input elements. |
2 | form | This specified the form element that the output is related to. The value of this attribute id the id of the form element. |
3 | name | This specifies the name of the output element |
This post first appeared on Tutorialdeep - An Online Web Development And Blogging Tutorial, please read the originial post: here