Mobile app version of vmapp.org
Login or Join

Login to follow query

More posts by @Kevin317

2 Comments

Sorted by latest first Latest Oldest Best

 

@Heady270

You can use internal anchors to define locations like so:

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

<div>
<p>Content Here</p>
</div>

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

10% popularity Vote Up Vote Down


 

@Ravi8258870

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.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme