Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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.