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 trialAlex Forseth
8,017 PointsInitial Root Relative path exercise not working. (from video)
For some reason when I plug in
<li> <a href="/">Home</a></li>
I literally get transfered to a page that has a single "/" and not the home.
What gives?
1 Answer
Ari Misha
19,323 PointsHiya there! The href attribute in HTML stands for Hyper Reference , which simply means a reference to another page or website. Now , href should always be in double quotes. And in your code above, you gave path of "/" to href, which pretty means the reference to landing page not to the "Home" ref. In order to link it to "Home" ref , your code should look like this (this would only work if you've Home page defined somewhere):
<li> <a href="/Home">Home</a></li>
I hope this helped!
~ Ari