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 Images, Text and Links Understanding File Paths

Link to articles won't work after adding it to articles folder

I just added articles.html to the articles folder and now I'm getting a not found message when I click the read more links. As far as I know, my href links <a href="articles/article.html">Read more</a> are correct. Does anyone know why I'm getting this error?

2 Answers

Edwin Buitrago
Edwin Buitrago
2,726 Points

Hi Amy,

Capitalization does matter in other languages going forward so it's best to start getting used to using the exact name as it will matter. HTML is case-insensitive so that's why it works.

In JavaScript Article, article or arTicle are all different because it is case sensitive.

Jonathan Grieve
MOD
Jonathan Grieve
Treehouse Moderator 91,252 Points

Hi Amy,

If you named the new file articles.html you'll need to use that as the src attribute in your HTML. I expect you thought you did that anyway but these things can be very easy to miss :)

So... just change your src attribute to <a href="articles/articles.html">Read more</a>

Well, turns out there was a typo in my question. The file is actually article.html, no s on the end. However, I had the folder name (Articles) capitalized in the workspace and not in index.html. When I changed the folder name to articles, the link worked. I didn't think capitalization would matter. Am I wrong about that?