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

Lawrence Lee
Lawrence Lee
4,240 Points

Code Challenge: basic selector

Does anyone know why it keeps showing up as Bummer on my first small quest in the challenge?

It ask me to select the h1 on the page. Set its color to blue. So here is what I typed: h1 em {color: blue;}

Here is what h1 is in the exercise: <h1><em>Hello</em> World!</h1> And the bummer message shows up..... I got no idea why this is happening.........

Gary Law
Gary Law
14,632 Points

hi Lawrence,

The challenge request you to select the whole h1 but not only the em inside the h1, and then set the font color to blue.

Therefore, the correct solution should be as follows:

h1 {
   color: blue;
}

hope this helps~

1 Answer

The answer above is right. I just did this one and typing

h1 {color: blue;}

works. You should remove the

em

that you have in your code.