Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialVince De Vera
Courses Plus Student 1,145 PointsCan someone explain to me what this is
Can someone please explain href to the index.html mean?
2 Answers
Andres Altuve
16,274 PointsThe href attribute specifies the URL of the page the link goes to, for example:
<a href="index.html">Home </a>
This is a link to the main page of your site.
Santiago Posada
5,189 Pointsindex is the page you are working with, If you check your file is named index so when you add this href means it will lead the site visitors to this page in this case index is your homepage. so what goes inside the quotes is the destination in this case "index.html"
Is like when you are on a website you click on the upper left corner to go to the homepage, in this case your homepage is the index one, which is the name of the file, when you add more pages you will direct the visitors to other pages so you will add more href= any other page.html"