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:

The link syntax to a named anchor:

The # in the href attribute defines a link to a named anchor.
Example:
A named anchor inside an HTML document:

A link to the Useful Tips Section from the same document:

A link to the Useful Tips Section from another document:

No comments:
Post a Comment