What is #top and how can I use it on my site
html, hyperlink
Solution
This depends on what exactly you would like to be treated as top and bottom. To link to the very start of the page, you can use the URL `#`, as in `<a href="#">Start of page</a>`. To link to some specific element near the start, assign an `id` attribute to it, e.g. `<h1 id="top">Main heading</h1>`, and use that attribute value in a link, e.g. `<a href="#top">Start of page</a>`.
The bottom is a bit more tricky, since there is no predefined URL for it, and although you can use the `id` technique, the URL will refer to the start of the element. You could deal with this using an empty element at the very end of document body:
Last piece of real content.
<div id="bottom"></div>
</body>
</html>
Then you would use e.g. `<a href="#bottom">End of page</a>`.
However, normally links to start of page are worse than useless, and links to end of page are no better. Every browser provides a simple way of getting to the start or to the end of any page.
Problem
I always see websites that has a link that says #top or #bottom that takes you to the top or bottom of the page. Can someone please tell me how I can use it on my website. I already tried saying `<a href="#top">` or `<a href="#bottom">` but it did not work.