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 trialweb pad
4,483 PointsHi, I can't link the Home tab in the articles.html to index.html. Is this code wrong?
<ul> <li><a href="../index.html"></a>Home</li> <li>About</li> <li>Articles</li> <li>Contact</li> </ul>
2 Answers
Steven Parker
231,269 PointsAre the "articles.html" and "index.html" files in different folders? The "../" in front of the file name says the the file is in a parent folder. If that's not actually the case it could be the issue.
To facilitate more specific answers, you can make a snapshot of your workspace and post the link to it here.
web pad
4,483 PointsOh my gosh!! Thank you so much. I really did not notice that the Home is outside of the anchor tag. Still have to get used to watching these things really closely.
web pad
4,483 Pointsweb pad
4,483 PointsThank you for the response. I hope this is the way to do snapshot. But here is the link https://w.trhou.se/9efi3o644p
Steven Parker
231,269 PointsSteven Parker
231,269 PointsPerfect snapshot! And the folder structure is correct for the link. But I overlooked before that the word "Home" is outside of the anchor tag, so it doesn't provide anything to click on. It was much more obvious when I tried it.
So move "Home" into the tag:
<a href="../index.html">Home</a>