Problem with anchor link in Bootstrap 3 Template?


#1

I have problem with anchor link in BS3.

<p><a href="#C5">Jump to Chapter 5</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>Chapter 4</h2>
<p>This chapter explains ba bla bla</p>

<h2 id="C5">Chapter 5</h2>
<p>This chapter explains ba bla bla</p>

It don’t work, Please help me.


#2

The anchor tag links to the name, not the id.

<h2 name="C5">Chapter 5</h2>
<p>This chapter explains ba bla bla</p>

#3

Thanks I will try now


#4

I tried, but not work.