dhairyashah
Portfolio

Aug 24th, 2022

What is hashtag in links?

Author Picture

Dhairya Shah

Software Engineer

You might have noticed the hashtag (#) at the end of a URL while browsing the web, something like this:

"https://google.com/#app"

The links which contain # (hashtags) are known as Hash-Links

One of the common examples is the navigate-to-top feature on many websites.

<body id="top">

// adding anchor tag to navigate to top
<a href="#top">Go to top</a>

</body>

Follow me on Twitter

Thanks for reading!