Dhairya Shah
Dhairya Shah's Blog

Dhairya Shah's Blog

What is hashtag # in links?

What is hashtag # in links?

Dhairya Shah's photo
Dhairya Shah
·Aug 24, 2022·

1 min read

Subscribe to my newsletter and never miss my upcoming articles

Play this article

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

  • The link will not point anywhere.
  • The main point of using hashtags in the links, is to navigate between elements of the pages and not between pages.

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

Liked my content? Buy me a coffee to fuel my work. Thanks for reading!

 
Share this