Easy Tutorial
❮ Ref Byfunc Av Met Addtexttrack ❯

HTML <a>name Attribute

HTML <a> Tag

Example

The name attribute is used to specify the name of an anchor:


Browser Support

All major browsers support the name attribute.


Definition and Usage

The name attribute is used to specify the name of an anchor.

The name attribute can create bookmarks within a large document.

The <a> tag must provide either the href or name attribute.

Note: In XHTML, the name attribute of the <a> tag is deprecated and will be removed in the future. The id attribute can be used instead.


Syntax

Attribute Values

Value Description
anchor_name The name of the anchor.

HTML <a> Tag

❮ Ref Byfunc Av Met Addtexttrack ❯