Easy Tutorial
❮ Jsref Fixed Prop Frame Marginwidth ❯

Anchor name Attribute


Definition and Usage

The name attribute sets or returns the value of the name attribute of a link.

The name attribute returns the name of a link, typically used to create bookmarks within a document.

Syntax

Set the name attribute:

Return the name attribute:

Value Description
name Sets the name of the link

Browser Support

All major browsers support the name attribute.


Example

Return the name of the link:

The output of the above example:

Return anchor: C6

❮ Jsref Fixed Prop Frame Marginwidth ❯