Quick question for making a webpage

littlegoku

Member
Jan 12, 2004
84
0
0
Hi, my friend is asking me how he can put a link on a webpage and when you click on it, it tranfers you to another part of the SAME page.

Please help.
 

BornStar

Diamond Member
Oct 30, 2001
4,052
1
0
You have to name a section with the <a name="here"> </a> tag and then to link you do <a href="#here"></a>.

I hope the formatting is OK.

edit: forgot to close the first anchor.
 

littlegoku

Member
Jan 12, 2004
84
0
0
this is an emergency

How do you have a link so that when you click on it, you goto another part of another webpage (not the top of it)
.
thanks
 

littlegoku

Member
Jan 12, 2004
84
0
0
googled it
thx anyways

Linking to anchors
An anchor is defined by the code <A NAME="ananchor"> </A> and linked to by adding #ananchor to the link e.g. there is a anchor called subdir higher in the page
<A NAME="subdir"> </A>

The link to this from the uploading page appears as

<A HREF="linking.html#subdir">Linking to a subdirectory.</A>

You can use the links within a page as well

<A HREF="#top">An Internal link to the top of the page</A>