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.

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.