Domain Manage

Link to a certain section of a page? How to?

Discussion in 'Website Design' started by BFTUK, Feb 14, 2006.

Thread Status:
Not open for further replies.
  1. BFTUK

    BFTUK Active Member

    Joined:
    Jan 2006
    Posts:
    888
    Likes Received:
    10
    Say i have a long text document with different headed sections.

    How can i provide a link to go straight to a certain section of a page?

    For example if my website had two pages:

    MENU PAGE

    TEXT PAGE

    if i wanted to put links on the menu page to different sections of the TEXT page, how do i do this?

    I hope i've explained it clearly enough!
     
  2. Domain Forum

    Acorn Domains Elite Member

    Joined:
    1999
    Messages:
    Many
    Likes Received:
    Lots
     
  3. aqls

    aqls Well-Known Member

    Joined:
    Nov 2005
    Posts:
    1,042
    Likes Received:
    26
    HTML Named Anchors are the keywords you're looking for:

    http://www.w3.org/TR/REC-html40/struct/links.html

    <a href=#thisIsWhereIWantItToGo>link to that part of the page</a>

    <a name=thisIsWhereIWantItToGo>destination part of page</a>

    something like that

    sorry - that was same page. different page is similar but with # directly after destination url

    so <a href=otherpage.html#thisIsWhereIWantItToGo> go there </a>

    -aqls-
     
    Last edited: Feb 14, 2006
  4. BFTUK

    BFTUK Active Member

    Joined:
    Jan 2006
    Posts:
    888
    Likes Received:
    10
    Thanks for the quick reply.

    I really should have known the answer myself, but i've never actually done that before!

    Thanks
     
Thread Status:
Not open for further replies.

Share This Page