Bootstrap Templates Bundle

Friday, December 28, 2012

How To Hyperlink Bookmark on the Same Page

This page shows the HTML code for making hyperlink bookmarks within the same page. This is achieved by using two different hyperlink codes. These hyperlink codes work together in pairs. One is the go-to target hyperlink and the other is the destination bookmark.

Hyperlink Bookmark Code

Insert the following HTML code into the part of the web document you want to bookmark:
Code
<a name="top"></a>
Now make a hyperlink that points to the bookmark:
Code
<a href="#top">Top of Page</a>

Output

Notes
In the above example, top is the name of the variable value. Name these anything you want.

If you want link to the other page just  change code by

<a href="http://www.hyperlinkcode.com/bookmark.php#top">Top of Page</a>

No comments:

Post a Comment

Murphy - Home Maintenance & Repair Service HTML Template

Murphy is a handyman repair service Bootstrap HTML Template. It is ideal for either all-rounders or professional teams to introduce the...