Latest web development tutorials
 

HTML <a> name Attribute

< 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