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

CSS not linking in Notepad++

I can't get my CSS page to link to my HTML one in notepad++ the HTML has the location C:\website\index.html

"<!DOCTYPE html>

<html>

<head>

<title> title </title>

<meta charset="utf-8">


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

</head>

<body>

<h1> heading</h1>

<p class="para"> this is a placeholder for a paragraph</p>

<hr>

</body>

</html>"

and the CSS has the location C:\website\CSS\test.css " h1 {

font-family="Ariel";

color="green";

}

.para{

color="red";

}"

everywhere I look just says make they're in the same folder but I still couldn't get them to work so I tried putting the CSS in a subfolder, I've tried putting them in the root directory nothing seems to work when I run it in firefox it just shows the HTML.

1 Answer

for historical purposes if anyone else has this problem the error was in the CSS and works correctly when adjusted to h1 { font-family:"Arial"; color:green; } .para { color:red; }