HTML 5 <output> Tag
Example
How to use the output element in a form:
<form action="form_action.asp" method="get" name="sumform">
<output name="sum"></output>
</form> |
View it » |
Definition and Usage
The <output> tag defines different types of output, such as output written by
a script.
Differences Between HTML 4.01 and HTML 5
The <output> tag is new in HTML 5.
Attributes
New : New in HTML 5.
Attribute |
Value |
Description |
forNew |
id of another element |
Defines one ore more elements the output field relates to. |
formNew |
formname |
Defines one ore more forms the output field belongs to. |
nameNew |
unique name |
Defines a unique name for the object (to use when a form is
submitted). |
Standard Attributes
The <a> tag also supports the Standard Attributes in HTML 5.
Event Attributes
The <a> tag also supports the Event Attributes
in HTML 5.
|