a href in html5 | Sololearn: Learn to code for FREE!


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

3/5/2020 12:11:20 PM

nin Sotei

3 Answers

New Answer


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




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