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

for some reason my normalize stylesheet is not linking to my index page. Would you know why.

Here is my code.

<!DOCTYPE html>
<html>
  <head>
  <meta charset="utf-8">
    <title>Jacob Greenberg | Developer</title>
    <link rel="stylesheet" href="css/normalize.css">
  </head>

Here is my code

<!DOCTYPE html>
<html>
  <head>
  <meta charset="utf-8">
    <title>Jacob Greenberg | Developer</title>
    <link rel="stylesheet" href="css/normalize.css">
  </head>

4 Answers

Hi Jacob,

Your code is right. Can you confirm that the normalize exists in the css folder, and paste the code here using the Markdown Cheatsheet as a guide?

Your code should be right, but if the CSS folder is at the website root /css/ then you might want to throw in a '/' in the front of css like:

    <link rel="stylesheet" href="/css/normalize.css">

<!-- So your folder structure should look something like this: -->

  |  
  -- index.html
  |
  -- css
       |
       -- normalize.css
  |

I figured it out. For some reason when I preview my index.html in workspace it takes me to http://port-80-hqreh2wurw.treehouse-app.com/. I have to click the h1 link in the header of the page to get to http://port-80-hqreh2wurw.treehouse-app.com/index.html which has the stylesheet applied. Do you know why it takes me to http://port-80-hqreh2wurw.treehouse-app.com/ instead of the index page?

The two URLs you posted behave exactly the same. http://domain.com & http://domain.com/index.html are always going to go to the same destination on static HTML sites.

It may be that you had a cached copy of the one URL, but otherwise you should see the same thing on both.

ill try closing and reopening the browser thanks for all the help guys.