0

a href in html5

What is the difference between <a href="#home">Home</a> And a href="home.html">Home</a> I'm following different tutorials and they use different. Thanks

5th Mar 2020, 12:11 PM
nin Sotei
3 odpowiedzi
+ 3
nin Sotei This is called reference hyperlink. When you click on that link then it will go to reference tag which is referred by id. Check this link understand in a better way. http://www.scriptingmaster.com/html/reference-link.asp#top
5th Mar 2020, 12:16 PM
Preity
Preity - avatar
+ 1
Welcome
5th Mar 2020, 12:18 PM
Preity
Preity - avatar
0
Ah ok i remember now! The #are for links in the same page but the .html extensions are for other pages. Thank u so much
5th Mar 2020, 12:17 PM
nin Sotei