HTML Link Bookmarks

HTML Tutorial

HTML Forms

HTML Graphics

HTML Media

HTML API

Html Link Bookmarks

Create a Bookmark in HTML

When a web page is very long, bookmarks can be useful.

To create a bookmark – first, create the bookmark, then add a link to it.

When the link is clicked, the bookmarks help to scroll down or up to the page.

Add Comments

Comments can place notifications and reminders in the HTML code:

Example

Let’s use the id attribute to create a bookmark:

<h2 id=”C4″>Tutorial</h2>

				
					<!DOCTYPE html>
<html>
<body>

<p><a href="#C4">Jump to Chapter 4</a></p>
<p><a href="#C10">Jump to Chapter 10</a></p>

<h2>Chapter 1</h2>
<p>This chapter explains ba bla bla</p>

<h2>Chapter 2</h2>
<p>This chapter explains ba bla bla</p>

<h2>Chapter 3</h2>
<p>This chapter explains ba bla bla</p>

<h2 id="C4">Chapter 4</h2>
<p>This chapter explains ba bla bla</p>

<h2>Chapter 5</h2>
<p>This chapter explains ba bla bla</p>

<h2>Chapter 6</h2>
<p>This chapter explains ba bla bla</p>

<h2>Chapter 7</h2>
<p>This chapter explains ba bla bla</p>

<h2>Chapter 8</h2>
<p>This chapter explains ba bla bla</p>

<h2>Chapter 9</h2>
<p>This chapter explains ba bla bla</p>

<h2 id="C10">Chapter 10</h2>
<p>This chapter explains ba bla bla</p>

</body>
</html>