Home | All Questions | alt.html FAQ > HTML Basics

How do I create a link that takes the user to the top of the page?

Put this at the top of the page :-

<a name="top"> </a>

And then link to it like this :-

<a href="#top">Top</a>

	<title>Link to top demonstration</title>


<a name="top">Top of page</a>

...lots of useful content...

...lots of useful content...

<a href="#top">Up to Top</a>

Recommended Resources


Related Questions