Example
Example
1
<!DOCTYPE html>
2
<html>
3
<head>
4
<title>Document Hash Navigation</title>
5
</head>
6
<body>
7
8
<h1>Table of Contents</h1>
9
<p><a href="#chapter1">Jump to Chapter 1</a></p>
10
<p><a href="#chapter2">Jump to Chapter 2</a></p>
11
12
<hr>
13
14
<h2 id="chapter1">Chapter 1: Getting Started</h2>
15
<p>Learn the basics of HTML elements.</p>
16
17
<h2 id="chapter2">Chapter 2: Working with Links</h2>
18
<p>Learn how to connect multiple pages together.</p>
19
20
</body>
21
</html>
