Anchor tag not working

  • 1
  • Question
  • Updated 9 years ago
  • Answered
This is the source:
B


This is the target:

A



When I go to the Bennett Archives page on my site and click on a lettter in the upper left hand corner bar, nothing happens. Do I have the syntax wrong?
Photo of Randy

Randy

  • 643 Posts
  • 8 Reply Likes
  • unsure

Posted 9 years ago

  • 1
Photo of UK Duke

UK Duke, Champion

  • 3321 Posts
  • 213 Reply Likes
<!--

Make sure the code is correct:

set the link <a name="#a"></a>

Find the link with this if its on the same page <a href="#a">A</a>

Or

<a href="http://SITENAME.com/PAGENAME.php#a">A...>

If its not on the same page.

-->
Photo of Randy

Randy

  • 643 Posts
  • 8 Reply Likes
OK. Here is the link:

<!--<a href="http://www.mcran.com/the-bennett-arch...> -->

<!--<h2><a name="#E1">E</a></h2>-->

Is this the way it should look?
Photo of Randy

Randy

  • 643 Posts
  • 8 Reply Likes
Hi Lee,

I am trying to set up the links the way you have it on your page with the alphabet list on the left hand side. I want to make sure I am getting the code right.
Photo of Donald

Donald

  • 2991 Posts
  • 37 Reply Likes
it works for me... it takes me directly to E on that page.
Photo of papa

papa

  • 327 Posts
  • 20 Reply Likes
Randy

Don't know if you got them working or not but here's a site I set up that might help

http://anchorsite.yolasite.com/

papa
Photo of Randy

Randy

  • 643 Posts
  • 8 Reply Likes
Thanks!!