5 hands-on exercises and 5 find-the-bug challenges for the CSS Combinators lesson. Every one is checked automatically in the browser — write the code, run it, and the tests tell you what still fails.
Make paragraphs inside .card red.
Target only direct paragraph children of #one.
Style the span immediately after the paragraph.
Style every span that follows a paragraph.
Target a span that is a direct child of #one and follows a p.
The paragraph is not a direct child in every card.
Two selectors with no space target one element with both.
Ready to write the code?
The editor, the automatic checks and the worked solutions open up with an account.
Open the workspaceAn adjacent sibling uses +, not -.
The span comes after the paragraph, not before.
The span is a sibling of the paragraph, not inside it.