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 How to Make a Website Creating HTML Content Add Image Gallery Content

Katherine Sartiano
Katherine Sartiano
6,113 Points

My preview page is displaying with a title of "Index of /" and the page content only shows as "(bullet point) img"

It seems that everything in my code is correct. Please let me know if there is anything I can do to fix this.

Katherine Sartiano
Katherine Sartiano
6,113 Points

It is correct in both the index.html file and within the HTML text when it is referenced as "index.html". Do you know if there is another reason of why it doesn't seem to recognize it?

Katherine, if it's still not working, can you please post a snapshot of your workspace? Here's a post that shows you how to do that: http://www.teamtreehouse.com/forum/workspace-snapshots

Katherine Sartiano
Katherine Sartiano
6,113 Points

Here is the snapshot: https://w.trhou.se/edcck4zczf

Thanks for all of the help so far and let me know if the snap shot didn't work.

Katherine Sartiano
Katherine Sartiano
6,113 Points

I'm not seeing anything though when I hit preview now. I just get a "404 Page Not Found" page.

I have no idea what you did, but it wasn't because of the snapshot. Fork that new snapshot I gave you. It'll give you a new workspace with your problems corrected.

You're welcome, Katherine. Since my answer was very helpful to you, you can mark it as best answer if you wish. Keep in mind what I said about the naming of the index file itself and about attributes in HTML. :)

1 Answer

Hi Katherine,

Check to make sure your index.html is spelled with a lowercase i and is spelled correctly. The Treehouse server, just like almost every hosting server, looks for "index" and then certain file extensions such as .html. If it doesn't find an index file, it will display the contents of the directory. If you have "Index.html" or any other spelling, capitalization, the server won't recognize the file as an index file.

The reason you're seeing bullets is that there are no styles on the page at all. List items in an unordered list <ul>, by default, show up as bulleted items. You are going to add styles in the course soon that will make your page look more presentable.

I also had to fix your <a> elements. You had ended them early and had left out the = sign in between the href and the value in the anchor element. Remember that any attribute in HTML requires an = sign and then a set of quotes, double or single (but not mixed).

Here is the new snapshot: https://w.trhou.se/wpuosby7ch