Curiosity | Sololearn: Learn to code for FREE!
+ 1


Hello to everyone. Why sometimes appears this : href="#"? Why does # appear ? what is its meaning?

17th Aug 2017, 2:42 PM
Dado2000 - avatar
2 ответов
+ 1
it is anchor link format you can use this links to move in page but mostly se use it to jump top of the page i created an exanple for you to understand it
17th Aug 2017, 4:14 PM
Melih Melik Sonmez
Melih Melik Sonmez - avatar
thats empty link, it takes you nowhere but on top of the page :) if you want to stay on same place and not going to top you can do it in javascript using preventDefault() its used when you want to perform some action but not leaving that webpage like submitting form :) you will see in url it will add "#" to end
17th Aug 2017, 4:08 PM
Šimun Ivanac
Šimun Ivanac - avatar