Web Host Directory Forums

View original thread:  Links Help


Pages: 1 
startsphere
How would I make a link that would link to another page as well as go down to an anchor on that page that was linked to.

So i'm on "index.html". I want to make a link from there to "tophosts.html" and also bring u down to "#bottom" on the "tophosts.html" page. How do i do this?
Sindre
Quote:
Originally Posted by startsphere
How would I make a link that would link to another page as well as go down to an anchor on that page that was linked to.

So i'm on "index.html". I want to make a link from there to "tophosts.html" and also bring u down to "#bottom" on the "tophosts.html" page. How do i do this?


Try

Code:
<a href="tophosts.html#bottom">Go to tophosts.html</a>


On tophosts.html, place e.g.

Code:
<p id="bottom">Here goes the bottom paragraph</p>
cbsturg
Is there any advantage to marking page separations with the <p id=....>....</p> instead of <a name=...></a>.....?

I hate the new line carriage return </p> forces on the page, so I've always gone with the "a name" route. Is this one of those html taboos that only the serious guys know (like closing out the <input /> tags...)?
WESH-UK
Quote:
Originally Posted by cbsturg
Is there any advantage to marking page separations with the <p id=....>....</p> instead of <a name=...></a>.....?

I hate the new line carriage return </p> forces on the page, so I've always gone with the "a name" route. Is this one of those html taboos that only the serious guys know (like closing out the <input /> tags...)?


Hi cbsturg

The only difference between using the <p> tag and the <a> tag is that one is a hyperlink and the other is simply a paragraph so it depends on how your using the text on your page to link it all up.

Normally you would use the <a> tag to link to the page anchor and the anchor where your linking to would then use the <p> tag if your linking to some normal text.

Hope this makes sense?
Return to Thread List