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

HTML How to Make a Website CSS: Cascading Style Sheets Use ID Selectors

Why can't I change the background-color to orange?

Here is a snapshot of my work by the way. https://w.trhou.se/cqbtjzfxk2

2 Answers

28,558 Points

You have a mistake in the two links tags you have added:

<link rel="stylesheet" href "css/normalize.css">
<link rel="stylesheet" href "css/main.css">

There needs to be an equal sign (not a space) between the href attribute and its value, just like there is with the ref attribute and its value. Like this:

<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/main.css">

Because of this issue your CSS files were not linked with the HTML file, so even though the CSS code itself is fine it doesn't affect your page.

In your index.html page your href links to your css files are missing the = symbol.