Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 126
  • Last Modified:

Localizing to Parts of A Webpage

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,

  • 2
1 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>
Sorry, typo in the last one...

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

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now