HTML tag

HTML tag is used to display the result of some calculation (performed by JavaScript) or the outcome of a user action (such as Input data into a form element).

The tag is a newly added tag and was introduced in HTML5.

Syntax

Following are some specifications about the HTML tag

Display Inline
Start tag/End tag Both Start and End tag
Usage Forms and Input

Example

Test it Now

Output:

HTML output tag

Attribute:

Tag-specific attributes:

Attribute Value Description
for element_id It specifies the list of other element's ids which indicates the relationship between the result of the calculation and the input elements.
form form_id It specifies the form element to which this element is associated with.
name name It defines the name for the output element.

Global attribute:

HTML tag supports the global attributes in HTML.

Event attribute:

HTML tag supports the event attributes in HTML.

Supporting Browsers

Element chrome browser Chrome ie browser IE firefox browser Firefox opera browser Opera safari browser Safari
Yes Yes Yes Yes Yes
Next TopicHTML paragraph Tag




Contact US

Email:[email protected]

HTML output Tag
10/30