Bookmarks are particularly handy for lengthy web pages.
To set up a bookmark, you initially establish the bookmark itself, followed by linking to it.
Clicking on this link will automatically scroll the page to the bookmarked section, either upwards or downwards.
First, use the id attribute to create a bookmark.
<h2 id=”C8″>Chapter 8</h2> |
Next, within the same page, create a link labeled “Jump to Chapter 8” that directs to the bookmark.
You can also add a link to a bookmark on another page:
<a href=”html_demo.html#C10″>Jump to Chapter 10</a> |