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 trial

HTML

I don't understand this code

href="../../index.html">Home</a></li> why the two forward slashes?

2 Answers

Hey Miriam, two dots followed by a forward slash tells a program to look in the folder one level up. It can be useful, but you have to be careful using relative paths like these since the reference would change if you move the resource.

In contrast, a single dot references the current directory. Here's a good article explaining this stuff: http://www.coffeecup.com/help/articles/absolute-vs-relative-pathslinks/.

Thanks Matt,

I figured out the problem - the folder was two levels up - as soon as I added a second ../ - the page linked to the original page perfectly. Learn something every day - love it

Miriam

Great! Glad you got it figured out :)