html code help

D13G0

New Member
Hey

I need a code for when theirs a lot of stuff in the page, you just click a link at the top of the page and it brings you down to it.

Example:

On 1 page of my website, there's a bunch of articles about Games. Say 1 article is about Call of Duty 4 and it's somewhere in the middle of all the articles. I want to put a link at the top so when you click it, it brings you right when the Call of duty 4 article starts.

Hope you understand

Thanks.
 
Last edited:
You would use internal anchors...

So at the top of your page, in your Table of Contents for instance, you have your link like this:
Code:
<a href="#call-of-duty-4">Call of Duty 4</a>

and then right before your Call of Duty text you would have this:
Code:
<a href="#call-of-duty-4"></a>

See this page for more info. Right-click on the page and choose View Source to examine the code.
 
Back
Top