Links: Bookmarks

Bookmarks allow readers to jump to a specific place on a website. They are also very useful for webpages that are very long. After the bookmark is created, a link to it is added. When the link is clicked on, the browser will jump to that bookmark.

Create the bookmark using the id attribute:

<h2 id="tips">Useful Tips Section</h2>

Link to the bookmark if it's on the same webpage:

<a href="#tips">Visit the Useful Tips Section</a>

Link to the bookmark from another webpage:

<a href="html_tips.htm#tips">Visit the Useful Tips Section</a>

Click on one of the letters at the top of this webpage to see how the bookmarks work on a long document.

Back button Table of Contents Next button