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

JavaScript JavaScript Basics Hello, JavaScript! Add JavaScript to HTML

Index.html Webpage looks incorrect

I'm on the "Add Java Script To HTML" video and when I go to view the "Index.html" webpage it does not look like the regular blue webpage that states "Hello Javascript!" when you attempt to view it. Instead it shows a very basic page with the heading "Index of/" and some files below. "css/" and "js/". I've haven't even touched the index.html file and have gone over it in comparision to the one in the video many times and there are no differences between the two that I can see. Where have I messed up? TIA

1 Answer

Michael Hulet
Michael Hulet
47,913 Points

Make sure you're going to index.html in your browser and not Index.html. URLs are case-sensitive, so those addresses would point to 2 different files, with capital I Index.html potentially not existing, so you get a server-generated default page