Curiosity | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Curiosity

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

17th Aug 2017, 2:42 PM
Dado2000
Dado2000 - avatar
2 Answers
+ 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 https://code.sololearn.com/Wd3Fkda12777/?ref=app
17th Aug 2017, 4:14 PM
Melih Melik Sonmez
Melih Melik Sonmez - avatar
0
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