CodeClerks

How do I create a link to a spot further down the page?



Write the reason you're deleting this FAQ

How do I create a link to a spot further down the page?

Is it possible to create an HTML link to a word further down the page, so the page jumps to that spot when clicked on?

Comments

Please login or sign up to leave a comment

Join
Sysode
Sure, here's how:

Your URL link:
[HTML]<a href="#link">Link</a>[/HTML]

Using a section down the page (HTML5 tag as well, but can be done with any tag)
[HTML]<section id="link">Your content</section>[/HTML]

All you have to do is name your section id after whatever you declared it in the link - if that makes sense?

You can also use some jQuery to make a smooth animated scroll to the section as well if you're feeling fancy.



Are you sure you want to delete this post?