Need a new web host or having a problem with a script? Tips and advice on the best way to design, build and maintain your most valuable asset - your website!

Link to position on a page

macdee1823
Posts: 109
Joined: 25 Jan 07
Trust:

Link to position on a page

Hey guys,

Does anybody know what code has to be included to jump to a specific part on a page, or how it is done?

Cheers :D
Wes
  • 0
Follow me on Twitter - http://twitter.com/WesleyMcDermott | Add me on Facebook - http://profile.to/wesleymcdermott/ | Connect on Linkedin - http://uk.linkedin.com/in/theseoconsultant
 
Site Admin
markling
Posts: 2488
Joined: 13 Jun 06
Trust:
Hey Wes,

At the point where you want to jump to, create an empty <a name> tag. So

Code: Select all
<a name="point1"></a>


Then if the link is on the same page, just go

Code: Select all
<a href="#point1">Jump to point 1</a>


If the link is on another page, go

Code: Select all
<a href="page.html#point1">Jump to point 1 on another page</a>


All the best,
Mark
  • 0
Limited time special - Try Affilorama Premium for just $1 for 7 days: http://www.affilorama.com/premium
 
macdee1823
Posts: 109
Joined: 25 Jan 07
Trust:
Great, thanks Mark. :D

Wes
  • 0
Follow me on Twitter - http://twitter.com/WesleyMcDermott | Add me on Facebook - http://profile.to/wesleymcdermott/ | Connect on Linkedin - http://uk.linkedin.com/in/theseoconsultant