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 trialJosh Schwartz
1,414 PointsMy article page wont link to the server. I cannot preview my web page keep getting 404 Not Found Error
404 Not found error
2 Answers
Antony .
2,824 PointsPost your code by opening your workspace and clicking on the top right icon that looks like a camera, also called a snapshot.
Antony .
2,824 PointsI believe you forgot to state the file directory in your index.html file. Meaning..
You never defined the "article.html" file in your index.html file.
In your index.html file, on line 16, change your href
attribute value
from:
<li><a href="#">Articles</a></li>
to:
<li><a href="articles/article.html">Articles</a></li>
Josh Schwartz
1,414 Pointsthank you
Josh Schwartz
1,414 PointsJosh Schwartz
1,414 Pointswhich code index.html or article.html?
Antony .
2,824 PointsAntony .
2,824 PointsIt doesn't matter which file. Creating a snapshot creates a link to all your current workspace files.
Josh Schwartz
1,414 PointsJosh Schwartz
1,414 Pointshttps://w.trhou.se/dzwp5sqydf