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

Adjacent sibling selector +

What does the selector h2 + p select?

Answer options

  • The first paragraph immediately after an h2 heading
  • All paragraphs inside h2
  • Every paragraph on the page
  • The paragraph that is the parent of h2

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