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

Which of the following statements about child selectors is true?

I can't figure this out.

Steven Parker
Steven Parker
243,332 Points

Please provide a link to the quiz page, or show the possible answers that you must choose from.

since I don't see the quiz I just give you some indicators, :first-child will get the first(most top) child tag from the parent tag you use it for ex. ol:first-child will get you the first element most likely li tag, last-child get you the last child instead of the first and the :nth-child() will give you a combination of the children like even or odd children (there is more on the last one).

2 Answers

Child selectors target elements that are direct children of an element.

Steven Parker
Steven Parker
243,332 Points

Did you figure out which quiz this question relates to?

thank you Mrs Muzerengwa