Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML output name attribute

HTML name attribute

HTML output Tag Reference HTML tag

Example

Performing a calculation and displaying the result in the element:

0

100

+

=

Try it »


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

The Firefox, Opera, Chrome, and Safari browsers all support the name attribute.

**Note:** The Internet Explorer browser does not support tag.


Definition and Usage

The name attribute specifies The name of the element.

The name attribute is used to reference form data after the form is submitted, or to reference an element in JavaScript.


Differences between HTML 4.01 and HTML5

The tag is new in HTML5.


Syntax

Attribute values

Value Description
name Specifies the The name of the element.

HTML output Tag Reference HTML tag