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 Using Combinators in Selectors

Bummer! The child combinator is >, make sure the color is set to 'green'.

what is the father of the child? who is the child?

2 Answers

Stone Preston
Stone Preston
42,016 Points

since you want to select the a tag nested inside the div, the parent is the div tag, the child is the a tag

you use the child combinator like this:

parent > child { }
Jonathan Grieve
MOD
Jonathan Grieve
Treehouse Moderator 91,252 Points

Without seeing your code, I can only advise that a parent tag is a tag that is inside another tag in your document. A parent of one element can be a child of another. The html tag is the root tag of all html elements.