Donate SIGN UP

top of page html code

Avatar Image
matt_r_baker | 20:58 Tue 08th Aug 2006 | Technology
6 Answers
can anyone tell me the html code to go back to the top of page... i presume its a special type of hyperlink but i may be wrong.
Gravatar

Answers

1 to 6 of 6rss feed

Best Answer

No best answer has yet been selected by matt_r_baker. Once a best answer has been selected, it will be shown here.

For more on marking an answer as the "Best Answer", please visit our FAQ.
is the anchor point, which you'd place at the top of the page

back to top is the hyperlink to it, which you'd place at the bottom of the page
ignore that, I can't post the html ...is doesn't show up
basically, you have to put an ''anchor point' at the top of the page, and a hyperlink to it at the bottom of the page

this'll help

http://www.w3.org/TR/html401/struct/links.html #h-12.1.3
Put this at the top :
<a name="top" />

This is the link you'd need :
<a target='_blank' href="#top">Goto top</a>
Without the _blank bit, AB put that in for me... thanks AB :o(
Or, and, in my opinion a better way is to just use an element you already have at the top of your page.

For example, if you have a heading at the top of the page something like this:

h1 id="heading"

then you'll be able to link to that by putting anywhere on your page:

a target='_blank' href="#heading"

1 to 6 of 6rss feed

Do you know the answer?

top of page html code

Answer Question >>

Related Questions