The name Attribute, anchor <a>

The target Attribute

The target attribute defines where the linked document will be opened.

The code below will open the document in a new browser window:

Example

target="_blank">Visit W3Schools!


The name Attribute

When the name attribute is used, the <a> element defines a named anchor inside a HTML document.

Named anchor are not displayed in any special way. They are invisible to the reader.

Named anchor syntax:

Name Anchor test