Skip to content
Related Articles

Related Articles

HTML | <a> name Attribute

View Discussion
Improve Article
Save Article
  • Last Updated : 02 Mar, 2022
View Discussion
Improve Article
Save Article

The HTML anchor name attribute is used to specify the name for an <a> element. It is used to reference the form-data after submitting the form or to reference the element in a JavaScript.

Note: The <a> name attribute is not supported by HTML5.


<a name="name"> 

Attribute Values: It contains a single value name which describes the name of the <a> element.


<!DOCTYPE html>
    <title>HTML a name attribute </title>
        HTML <a> name attribute
    <p>Welcome to
        <a href=""


Supported Browsers: The browsers supported by HTML <a> name attribute are listed below:

  • Google Chrome 1.0
  • Firefox 1.0
  • Edge 2.0
  • Opera 1.0
  • Apple Safari 1.0
My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!