codescracker


html

HTML OUTPUT Tag



« Previous Tutorial Next Tutorial »


The OUTPUT tag is used to display the result of the calculation, which can be written using the JavaScript.

The OUTPUT tag has three attributes i.e. form, name, and for. The form attribute is used to specify the name of the form in which the output is displayed. The name attribute is used to specify the name of the current tag and the for attribute is used to specify the name of the control in which the result is displayed.

OUTPUT Tag Example

Following is an example of using the OUTPUT tag.

<FORM>
	<OUTPUT name="result">
	</OUTPUT>
</FORM>

OUTPUT Tag Attributes

Following table lists the attributes of the OUTPUT tag.

Attribute Description
For Associates the output with a specific control. The value of this attribute must match the id attribute of its associated control.
form Refers to the id of a form
name Specifies the name of the OUTPUT tag

« Previous Tutorial Next Tutorial »



Tools
Calculator

Quick Links
Signup - Login - Give Online Test