CSS Solution: Linking to the Stylesheet

Zac Elisara
Zac Elisara
1,299 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 82,447 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">