Back to top link

To create “back to top” link, we need 2 codes.

One for the top of the html page (at the top of the document after the <body> tag).

[html]<a name="top" id="top"></a>[/html]

(2 values of ID and NAME have to be equal for validation on validator.w3.org)

One for the link you want to show the link.

[html]<a href="#top">Back to top</a>[/html]

Leave a Reply