Solved

Linking to an anchor in another web page using html

Posted on 2008-10-19
6
253 Views
Last Modified: 2010-04-06
Is there a way to link from one page to another location (that is anchored) on a different page?
0
Comment
Question by:blerman456
  • 2
  • 2
  • 2
6 Comments
 
LVL 12

Accepted Solution

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

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

Assisted Solution

by:fcardinaux
fcardinaux earned 250 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>
0
 

Author Comment

by:blerman456
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>
0
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

 
LVL 8

Expert Comment

by:fcardinaux
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.
0
 

Author Comment

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

Expert Comment

by:hfraser
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:

http://famous_mathematicians.html#Euclid_of_Alexandria

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

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

      Install BugTracker on Windows 2008 server Step 1:  Install windows 2008 server 32 bit OS and configure IIS. Step 2:  Install SQL server ( SQL server 2005 or SQL server 2005 Express edition. The installer for 2008  version isn’t very f…
A Change in PHP Behavior with Session Write Short Circuit (http://php.net/manual/en/book.session.php#116217) (Winter 2014)** With the release of PHP 5.6 the session handler changed in a way that many think should be considered a bug.  See the note …
This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…
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.

776 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