Dhairya Shah
Dhairya Shah's Blog

Follow

Dhairya Shah's Blog

Follow
What is hashtag # in links?

What is hashtag # in links?

Dhairya Shah's photo
Dhairya Shah
ยทAug 24, 2022ยท

1 min read

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