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 Include External CSS

I don't see any changes with css stylesheet

Hi there,

After including the stylesheet element, I no longer see my webpage but "Index of/. I don't see any of the style changes as seen in Nicks' video.

I have to click on a link that reads: "img/" in order to see my webpage- however none of the styling is applied. Any ideas as to why this is happening?

Thank you for your input!

Here's my code:

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>Johnny Garces | Chief Servant</title>
    <link rel="stylesheet" href="css/normalize.css">
  </head>

2 Answers

Kevin Korte
Kevin Korte
28,149 Points

The index of/ page appears when there is no index file in the root directory. It sounds like you have a folder in the root directory named "img" and your website lives inside that folder.

If that's the case, that would explain why your CSS isn't working. The URL doesn't look right with you having to click on the img folder. I also image you didn't mean to have your whole site live inside that img folder.

To verify, you can use your browsers dev tools to see if the CSS file is actually be found or not. My guess is it's not. You would then need to get your folder and file structure as you want it, and make sure your href attributes are correct for your particular file structure.

*My man" as Denzel would say. Thanks for the helpful response!