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

Linking to an anchor in another web page using html

Is there a way to link from one page to another location (that is anchored) on a different page?
0
blerman456
Asked:
blerman456
  • 2
  • 2
  • 2
2 Solutions
 
Hugh FraserConsultantCommented:
Sure. The format is:

<a href="http://target.html#anchor>Link to an anchor in another document</a>
0
 
fcardinauxCommented:
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
 
blerman456Author Commented:
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
Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

 
fcardinauxCommented:
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
 
blerman456Author Commented:
I am using Compozer to write the code.  Is it a template?  If so, how can youtell>
0
 
Hugh FraserConsultantCommented:
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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