Log in

View Full Version : Problem with linking code



Diversions
12-30-2008, 03:18 PM
I am trying to link to a different part of an FAQ page and am having a devil of a time with the link structure. Right now I am working on an internal WAMP server and the page is not responding so I will just give you the basic code I am using and hopefully someone can tell me what I am not seeing.

In the h2-tag I have included <a name="#FAQ1">Frequently Asked Questions</a> (based on the WC3 example but I have also tried <a id="#FAQ1">Frequently Asked Questions</a>)

At the bottom of the page I have placed <a href="#FAQ1">-Return to Top-</a>

Clicking "Return to Top" has no result and the page is deep enough that there should be movement.

I know it is something simple and ridiculously obvious and yet, the solution escapes me.
As always thanks for your assistance.

D

jscheuer1
12-30-2008, 04:57 PM
The # symbol represents that a named anchor's name follows, so should be used in the href attribute, but not in the name attribute:


<a name="FAQ1">Frequently Asked Questions</a>

This part you have right:


<a href="#FAQ1">-Return to Top-</a>

Diversions
12-30-2008, 09:51 PM
Works a treat. Thank you so much.

D