Posts

Showing posts with the label Code Tips

How To Add A Jump Link To Your Blog

Image
By     McDonald, T.    | Updated 30th of June 2022 While surfing the internet, you may have noticed that some sites have an index that lets you jump to different parts of the same webpage and thought 'That is cool!'  Well, this is how you do it.  I have used blogger to demonstrate how it is done, but the process will be very similar for most blogs. What is a jump link A jump link is a link that lets the user jump to certain pats of the same webpage they are viewing. How to add the code You will need to add a simple piece of code. Make sure you add it just before the code you want it to jump to.  Note, the anchortext should have no spaces and anchortext can be anything you like.  For instance, you can replace anchortext with intro or con. The code is encapsulated in a span tag.  See below. <span id="anchortext"></span>   For example, if you want to jump to a header on the same page, you put the above code just before the <h1> tag in the HTML. Select