Localizing to Parts of A Webpage

Posted on 2006-03-30
Last Modified: 2010-04-25
I'm trying to set up links that will go to a certain part of a webpage and not just to the top. For example, in setting up a glossary - how would you set it up so that the link goes to a specific word on one page - like centering on "cell" instead of "acellular" which is at the top of the page. The links are on other pages of the site, but the words featured in the links are described on a glossary page. I just want people to be able to go to a specific part of the page and not have to skim the whole thing. I've seen this done before, so I know it can be done. Just don't know how. I would appreciate any help I can get.

Thanks for your time,

Question by:AllHale
    LVL 25

    Accepted Solution

    It is possible using the anchor tag.  Find the text you want to link TO and add this code around it...

       <a name="myText">Link to this text</a>

    Then wherever you want to start the link (where the user clicks to get to your word), use this...

       <a href="#myText">Go to text</a>

    Or if its on another page entirely, you add the normal page's URL before the #...

       <a href="mytextpage.html#myText>Jump to text on another page</a>
    LVL 25

    Expert Comment

    Sorry, typo in the last one...

       <a href="mytextpage.html#myText">Jump to text on another page</a>

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    Adobe Dreamweaver CS5 is a WYSIWYG web page editor that has advanced HTML, CSS, and Javascript rendering functionality and is probably the most well-known HTML editor available. Much of Dreamweaver's appeal centers around the Design View interfac…
    This article is very specific and is only intended to help if you are installing Dreamweaver 8 in a Windows 7 environment with Office 2007 installed.   I'm not sure why Microsoft tends to release OS' that should not be released but they do.  Windows…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    794 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now