The HTML name attribute
Example
A named frame:
Try it »
Browser support





All major browsers support the name attribute.
Definition and Usage
HTML5 does not support the tag.
The name attribute specifies the name of the element.
The name attribute is used to reference the element in JavaScript, or as a target of a link.
Differences between HTML and XHTML
In XHTML, the name attribute of the tag is deprecated and will be removed. Please use the id attribute instead.
HTML Tag