Search code examples
htmlhyperlink

Link to a section of a webpage


I want to make a link that when clicked, sends you to a certain line on the page (or another page). I know this is possible, but how do I do it?


Solution

  • your jump link looks like this

    <a href="#div_id">jump link</a>
    

    Then make

    <div id="div_id"></div>
    

    the jump link will take you to that div