Question · HTML and CSS course · Module 3: CSS Basics

Child selector >

What does the selector div > p select?

Answer options

  • All paragraphs in the document
  • Only direct child paragraphs of the div element
  • All paragraphs at any nesting level inside div
  • The paragraph adjacent to div

You can check the correct answer by solving this task in the CodeWorlds game.