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.


How do I pass Task 2 of this challenge?

The challenge is under CSS Foundations - Selectors - Type, Class, and ID Selectors. It keeps failing me, and I don't understand why. It says to select the h1 on the page and change its background color to dark blue, so I type in:

h1 { background-color: darkblue; }

It doesn't seem to work. Is this a bug, or am I being stupid? Please help! :'(

2 Answers

Hi Sophie,

The challenge says to change the color to darkblue, not the background color.

h1 { color: darkblue; }

Ohhh. Thanks! I feel like a total dummy now, LOL.

Dai Phong
Dai Phong
20,395 Points

Try to change background-color to background:

h1 { 
background: darkblue;