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 HTML Basics Structuring Your Content Marking Up a Blog Post

Josh Schwartz
Josh Schwartz
1,414 Points

My 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 .
Antony .
2,824 Points

Post your code by opening your workspace and clicking on the top right icon that looks like a camera, also called a snapshot.

Josh Schwartz
Josh Schwartz
1,414 Points

which code index.html or article.html?

Antony .
Antony .
2,824 Points

It doesn't matter which file. Creating a snapshot creates a link to all your current workspace files.

Antony .
Antony .
2,824 Points

I 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>