0

HTML link ... # vs /

What is the difference between # and / when linking to a page on your website? On the address bar, sometimes you'll see ...com#page, or ...com/page while I was typing this, it was / (sololearn.com/Discuss/New/

26th Nov 2019, 7:48 PM
Ginfio
Ginfio - avatar
2 Respuestas
+ 2
# is used for directing the user to element with id i.e fish.com#about -> you will be directed at an element in the main page with id 'about' for example : <section id="about"></section>. So you have a view on your browser point to section with about id fish.com/about -> you will be directed to about page and it doesn't point to any id
27th Nov 2019, 2:53 AM
Fuu
Fuu - avatar