+ 1
Curiosity
Hello to everyone. Why sometimes appears this : href="#"? Why does # appear ? what is its meaning?
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
https://code.sololearn.com/Wd3Fkda12777/?ref=app
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