HTML snippet to link a chapter on a webpage

  • 0
  • 1
  • Question
  • Updated 3 years ago
  • Answered
Archived and Closed

This conversation is no longer open for comments or replies and is no longer visible to community members. The community moderator provided the following reason for archiving: Archived

This is an HTML snippet for adding link for a chapter on a webpage. The link is added at the top of the page and has an embedded link to the chapter: Hope this will be helpful to someone.  This is a tip from the W3 schools tutorials online that I learned.


<p><a href="#C4">See also Chapter 4.</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><a id="C4">Chapter 4</a></h2>
<p>This chapter explains ba bla bla</p>

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

George6434

  • 170 Points 100 badge 2x thumb

Posted 3 years ago

  • 0
  • 1
Photo of Drew N

Drew N, Community Manager

  • 259,220 Points 100k badge 2x thumb
Great snippet.

This conversation is no longer open for comments or replies.