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 trialDouglas Middleton
1,233 PointsUnderstanding file paths Im lost
I lost. I click "read more". Page will not load?
4 Answers
Liam Clarke
19,938 PointsIn this lesson, you are using relative URLs to move to different pages.
A relative URL is relative to where its current file is.
For example:
root |- assets |- styles.css
|-
|- includes |- about.html
|-
|- index.html
On the above structure, in the index.html file, if want to reference the about.html, my anchor tag will look like this:
<a href="includes/about.html">About</a>
This is because relative to index.html I must go to the includes directory and then the about.html
in about.html if I want to reference the index.html page, my anchor tag will look like this:
<a href="../index.html">About</a>
There is only 1 file relative to about.html, in the includes directory so the two dots go back a directory and then I can reference the index.html file.
Hope this helps
Good Luck!
Douglas Middleton
1,233 PointsThanks for your help.
My problem is, I think, is not being able to edit the mistakes in the root directory. Or the code is so badly mangled it gives me a code 80 fault.
Im not sure what to do at this point.
Liam Clarke
19,938 PointsWhen you click on the link, what is the full error you get in the console?
Douglas Middleton
1,233 Pointshttp://port-80-br9mn3o7z5.treehouse-app.com/
I hope this helps