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

CSS

LINK ELEMENT

I inserted the link element into my html file, but when I refreshed my index page, I did not see any changes. There should have been slight changes. Did I do something wrong? Thanks!

7 Answers

The hyperlink element looks like this:

<a href = "url">Text displayed</a>

But if you mean links that have to do with attaching CSS files to the HTML files, you shouldn't see anything.

Ok. I had this problem too. The way I fixed it is by changing the hyperlink, like this:

href="normalize.css"

So the whole link looked like this (for me):

<link rel="stylesheet" href="css/normalize.css" type="text/css" media="screen"/>

(the slash at the end of the link tag is optional).

Did you put the link between the two <head></head> tags? Is the link in the format below? '''html <link rel="stylesheet" type="text/css" href="path/to/your/file"> ''' You also need to make sure that the path to the style sheet is correct.

I inserted <link rel="stylesheet" href="css/normalize.css" type="text/css" media="screen"> below the title on my index page. It didn't change the font as I expected. I am doing a project for the CSS reset course. The instructor inserted the same link under the title on his page and it updated his page with a different font.

I changed the hyperlink reference to "normalize.css"

I tried it, but it did not work. I may have to start over because I could have messed up somewhere when created the layout. Thanks for your help.

It didn't work? OK... Well, you're welcome.