You want to target all paragraphs that are immediately after an h2 element within the same container. Which CSS selector combination will you use?

  • h2 + p
  • h2 > p
  • h2 p
  • h2 ~ p
To target all paragraphs immediately after an h2 element within the same container, you would use the selector h2 + p. This selector selects any

element that is immediately preceded by an

element.

Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *