THE WORLD'S LARGEST WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

HTML <a> name Attribute

HTML a Tag Reference HTML <a> tag

Example

The name attribute specifies the name of an anchor:

<a name="C4">Chapter 4</a>
Try it yourself »

Definition and Usage

The <a> name attribute is not supported in HTML5. Use the id attribute instead.

The name attribute specifies the name of an anchor.

The name attribute is used to create a bookmark inside a document.


Browser Support

Attribute
name Yes Yes Yes Yes Yes

Syntax

<a name="value">

Attribute Values

Value Description
anchor_name The name of an anchor

HTML a Tag Reference HTML <a> tag