Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Practice File Paths!
You have completed Practice File Paths!
Preview
This video covers one solution to the "Practice File Paths" challenge.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
compare it to what you wrote, and
then try to recreate it yourself.
0:00
The goal was to display the images and
0:01
link the HTML files together
using relative paths.
0:03
Now I'll show you my solution,
0:06
you can also reference my code when
you download the project files.
0:07
First up, in the file index.html,
I set the home link and
0:11
the navigation to point to index.html.
0:15
Now, about.html is inside
0:18
a folder called pages.
0:21
So to link to the About page,
I set the path to pages/about.html.
0:24
And I set relative URL paths
to display the dog images too.
0:28
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up