HTML
Example
as the target of a link
Try it »
Browser support





All major browsers support the name attribute.
Definition and Usage
The name attribute specifies
name The name attribute of an element is used to reference the element in JavaScript, or as a or
Differences Between HTML 4.01 and HTML5
None.
Differences Between HTML 4.01 and XHTML
In XHTML, the name attribute is deprecated and will be removed. Please use the id attribute instead.
HTML