CSS Solution: Linking to the Stylesheet

Zac Elisara
Zac Elisara
1,179 Points

Css not working for me

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

This does nothing to the webpage. i've saved multiple times but nothing happens?

1 Answer

Jonathan Grieve
Jonathan Grieve
Treehouse Moderator 81,699 Points

You need to assign the href attribute with = just like you did for the rel property.

You could also use a type attribute as well to specify explicitly that it is a CSS file.

<link rel="stylesheet" type="text/css" href = "css/style.css">