<div style="display:hidden"> <a href="#first">Chapter 1</a> <a href="#second">Chapter 2</a> </div> <h3 id="first">This is chapter 1</h3> <h3 id="second">This is chapter 2</h3>