if a link in an <a href=""> tag has a hashtag (#), that means that the link won't go anywhere?? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 1

if a link in an <a href=""> tag has a hashtag (#), that means that the link won't go anywhere??

10th Feb 2018, 8:45 AM
Zarlish Q
Zarlish Q - avatar
3 Respostas
+ 1
A hash -Ā #Ā within a hyperlink specifies an html element id to which the window should be scrolled. href="#some-id"Ā would scroll to an element on the current page such asĀ <div id="some-id">. href="//site.com/#some-id"Ā would go toĀ site.comĀ and scroll to the id on that page. only # acts as a placeholder, therefore will not link to anywhere
10th Feb 2018, 9:03 AM
Bhavya Sharma
Bhavya Sharma - avatar
+ 3
yea, its a dead link
10th Feb 2018, 9:00 AM
Raz
Raz - avatar
+ 1
thank you @Bhavya Sharma @neicore
10th Feb 2018, 2:12 PM
Zarlish Q
Zarlish Q - avatar