The html5 tutorials

 
About HTML5
Home
Introduction to HTML5
Features of HTML5
Older versions Vs. HTML5
 
Tags  
source
article
aside
audio
canvas
command
datalist
details
embed
figcaption
figure
footer
header
hgroup
keygen
mark
meter
nav
output
progress
ruby
section
summary
time
video
wbr
 

The Output tag - <output> Tag

The <output> tag is used to show the result of a calculation made using a script.

Example code:

<html>
  <body>
    <form action="form.asp" method="get" name="avgform">
      <output name="avg"></output>
    </form>
  </body>
</html>

Attribute Values Description of the attribute
For Form or id list of other element This indicates that the ids of other elements contributed input values to the calculation
form Name of the form Specifies more than one forms to which the output field belongs to
name Name which is unique Defines the name of the element.