Hyperlinks within a Page

You can also make a hyperlink go to another part of the same document, or a specific part of another document.

This is how to create the named anchor (your target)

<a name=...>

This denotes the start of the Anchor.

"top"

This is the name of the anchor, it can be any combination of characters, but keep it meaningful. It goes after the = in the anchor tag.

Hyperlinks

This is the text that will be visible on the page at the point of the target.  The anchor will not work on all browsers if it does not have some text between the <a name="top"> and </a> tags. Alternatively you could use an image for the target.

</a>

This is the end tag for the named anchor.

<a name="#top">Hyperlinks</a>

This is how to create a hyperlink from a word, sentence or an image

<a href=...>

This Anchor is the start of the hyperlink.

"#top"

This is the name of the the anchor. It goes after the = in the anchor tag. This target would be on the same page. The # lets the browser know this is a hyperlink to another part of the same page and not the name of a different HTML file.

top of this page

This is the text that will be highlighted as the hyperlink, it is typed after the <a href="#top"> tag. Alternatively you could use an image for the hyperlink.

</a>

This is the end tag for the hyperlink.

<a href="#top">top of this page</a>

In this example the hyperlink created would jump to the top of this page.

Click it, it works!

If the named anchor was on a different page the link would look like this:

<a href="index.html#top">top of a different page</a>