Explaining ‚Äú#‚ÄĚ | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite

Explaining ‚Äú#‚ÄĚ

I thought when you put ‚Äú#‚ÄĚ in place of where an actual link goes, like this- <a href=‚Äú#‚ÄĚ> that it creates a dead link and is still clickable, but doesn‚Äôt load anything. However, in the last example I did the webpage was reactive and the tag that had <a href=‚Äú#‚ÄĚ> had an active link. I‚Äôm confused on how that is possible if the link is considered dead.

20th Mar 2019, 2:57 AM
3 Réponses
+ 8
Basically # is used to create internal links. By internal links, I mean to link parts of same webpage in the webpage.
20th Mar 2019, 3:57 AM
Arushi Singhania
Arushi Singhania - avatar
+ 2
# also called target, scrolls the page to the top. And if you have <div id="main"> and target as <a href="#main"> scrolls the page to that main content. To navigate to other links or pages with Dead links probably JavaScript was used to open new location.href function
20th Mar 2019, 3:11 AM
Niush - avatar
thank you
20th Mar 2019, 8:36 PM