Linking to an anchor in another web page using html

Posted on 2008-10-19
Medium Priority
Last Modified: 2010-04-06
Is there a way to link from one page to another location (that is anchored) on a different page?
Question by:blerman456
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
LVL 12

Accepted Solution

hfraser earned 1000 total points
ID: 22754647
Sure. The format is:

<a href="http://target.html#anchor>Link to an anchor in another document</a>

Assisted Solution

fcardinaux earned 1000 total points
ID: 22755121
On the first page, your link must look like this:

<a href="page2.html#abcd>Link to page 2, chapter "abcd"</a>

On the second page, you need to have an anchor like this where the chapter begins:

<a name="abcd"></a>

Author Comment

ID: 22756746
Here is what keeps showing up in my source when I type in what you stated:
<href="famous_mathematicians.html#Euclid_of_Alexandria" target="Euclid_of_Alexandria">

I keep typing "<a href"  but it doesn't stay.  Also, shoud I actually type in:

<a href ="famous_mathematicians.html#Euclid_of_Alexandria>Link to famous_mathematicians.html,"Euclid_of_Alexandria"</a>
Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI


Expert Comment

ID: 22759172
Yes, you should. What kind of editor do you use? Are you writing HTML code? According to what you have written in your last comment, you may be writing some kind of XML template.

Author Comment

ID: 22759916
I am using Compozer to write the code.  Is it a template?  If so, how can youtell>
LVL 12

Expert Comment

ID: 22762676
If you're using Kompozer, it's much easier. Go into "Normal" mode (the tab at the bootom). Type in the text

Link to famous_mathematicians.html,"Euclid_of_Alexandria"

Using the mouse, select the text. At the top of the click on the "Link" button (it looks like a link in a chain).
Enter the URL you want to link to:


and hit OK. If you'd like to see the HTML it created, click on the "Source" button on the bottom.

Featured Post

Get MySQL database support online, now!

At Percona’s web store you can order your MySQL database support needs in minutes. No hassles, no fuss, just pick and click. Pay online with a credit card.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Foreword (May 2015) This web page has appeared at Google.  It's definitely worth considering! https://www.google.com/about/careers/students/guide-to-technical-development.html How to Know You are Making a Difference at EE In August, 2013, one …
Thoughout my experience working on eCommerce web applications I have seen applications succumbing to increased user demand and throughput. With increased loads the response times started to spike, which leads to user frustration and lost sales. I ha…
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to choose which pages of your form are visible to your users based on their inputs. The page rules feature provides you with an opportunity to create if:then statements for y…
Learn how to set-up custom confirmation messages to users who complete your Wufoo form. Include inputs from fields in your form, webpage redirects, and more with Wufoo’s confirmation options.

752 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