HTML <a> name Attribute

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.


Syntax

<a name=”value”>

Attribute Values

Value Description
anchor_name The name of an anchor

Post Author: Zahid Farid