Film, Media & TV6 mins ago
top of page html code
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.
Answers
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
back to top is the hyperlink to it, which you'd place at the bottom of the page
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
this'll help
http://www.w3.org/TR/html401/struct/links.html #h-12.1.3
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"
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"