Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What makes the user go to a specific location on a new html page? Not the current page. For example, when you click this link, you don't end up starting at the top like you normally would.


share|improve this question

That's called an HTML anchor. Notice the #. The text AFTER that hash symbol is never actually sent to the server (in the GET request) so the server is only aware that you are visiting up to the '.htm' part. Your browser will look for anchors (take a look at the source) and scroll you down to that part.

In modern web design, anchors are used also in conjunction with JavaScript to load certain windows or messages.

share|improve this answer
Great explanation! Thank you. – Mark Beleski Mar 15 '13 at 18:28

You can use internal anchors to define locations like so:

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

    <p>Content Here</p>

<a href="#top">Back to Top</a> 
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.