How to Create an Anchor Link?

jealousy91

Member
Oct 2, 2015
32
0
66
I'm trying to learn how to create an anchor link, meaning, a hyperlink that'll not only jump to another webpage but to a specific part of the other page.

I've tried reading many guides on how to do it, but it's just not working. Is there a simpler way to do this ?
 
Last edited by a moderator:

Ken g6

Programming Moderator, Elite Member
Moderator
Dec 11, 1999
16,616
4,532
75
<a name="anchorname"> forms an anchor.

<a href="page#anchorname"> links to that anchor from a different page.
 

purbeast0

No Lifer
Sep 13, 2001
53,543
6,368
126
I'm trying to learn how to create an anchor link, meaning, a hyperlink that'll not only jump to another webpage but to a specific part of the other page.

I've tried reading many guides on how to do it, but it's just not working. Is there a simpler way to do this ?

i'm going to call bs on the bolded. a quick google search will give you literally copy/paste code that will work.
 

Ken g6

Programming Moderator, Elite Member
Moderator
Dec 11, 1999
16,616
4,532
75
I just noticed this was moved from Technical Forum Issues. If the issue is to link to another part of a webpage from these forums...

Try this.

(Quote the post to see the code.)

One more thing: If there isn't an anchor tag at the place you want to jump to, there's no way to link to that point on a page. :(
 

velimark

Junior Member
Oct 21, 2015
9
0
0
www.octalsoftware.co.uk
To go to a particular part of the page while adding a hyper link, you need to mention the class of that part which you need to open. While adding the URL in anchor tag, you need to end the URL with the class of that part. eg
<a href="pageurl#section">text</a>