• Guest, before posting your code please take these rules into consideration:
    • It is required to use our BBCode feature to display your code. While within the editor click < / > or >_ and place your code within the BB Code prompt. This helps others with finding a solution by making it easier to read and easier to copy.
    • Don't share a wall of code. All we want is the problem area, the code related to your issue.


    To learn more about how to use our BBCode feature, please click here.

    Thank you, Code Forum.

HTML & CSS How to setup a link to jump to a certain point on your webpage using HTML?

Malcolm

Administrator
Administrator
Staff Team
Company Plus
I've seen it before but have no clue on how to do this. I played around with Bootstrap studio and it had it setup as a link point to an ID attribute on the element that you want to jump to when you click the link.

An example is:

[CODE lang="html" title="HTML - Link jump to a point on a page."]<a href="#h1">Click this link to scroll down to H1</a>
<h1 id="h1">Yay you scrolled down to me!</h1>[/CODE]

Can someone please tell me if this is correct?
 
Last edited:
I've seen it before but have no clue on how to do this. I played around with Bootstrap studio and it had it setup as a link point to an ID attribute on the element that you want to jump to when you click the link.

An example is:

[CODE lang="html" title="HTML - Link jump to a point on a page."]<a href="#h1">Click this link to scroll down to H1</a>
<h1 id="h1">Yay you scrolled down to me!</h1>[/CODE]

Can someone please tell me if this is correct?
Very useful. Thanks for sharing!
 
Top Bottom