Results 1 to 3 of 3

Thread: Problem with linking code

  1. #1
    Join Date
    Jun 2005
    Location
    Canada
    Posts
    68
    Thanks
    10
    Thanked 0 Times in 0 Posts

    Default Problem with linking code

    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

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    The # symbol represents that a named anchor's name follows, so should be used in the href attribute, but not in the name attribute:

    Code:
    <a name="FAQ1">Frequently Asked Questions</a>
    This part you have right:

    Code:
    <a href="#FAQ1">-Return to Top-</a>
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. The Following User Says Thank You to jscheuer1 For This Useful Post:

    Diversions (12-30-2008)

  4. #3
    Join Date
    Jun 2005
    Location
    Canada
    Posts
    68
    Thanks
    10
    Thanked 0 Times in 0 Posts

    Default

    Works a treat. Thank you so much.

    D

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •