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 Foundations Selectors Type, Class, and ID Selectors

Quiz not working right

Why is this not recognizing that I've set the descendant em to red?

/* Complete the challenge by writing CSS below */ body { background-color: lightblue; }

h1 { color: darkblue; }

h1 em { color: red; }

3 Answers

Ashley Shay
Ashley Shay
8,664 Points

Are you sure it's asking for the em descendant of the h1? I just re-took the code challenge and it asked me for the em descendant of the paragraph. I don't know if it changes it up or not... but your code looked fine other than that.

Thank you.

Kristopher Van Sant
Kristopher Van Sant
Courses Plus Student 18,830 Points

Hi! It should be written like this:

em { color: red; }

You don't need to put h1 before em.

Ashley, you're right. I didn't read carefully. When I took it again I saw the paragraph not h1.