In this example, what color will the paragraphs be and why?

Advertisement

article p {
color: blue;
}
article > p {
color: green;
}

<article>
<p>Paragraph 1</p>

<aside>
<p>Paragraph 2</p>
</aside>
</article>

  • Paragraph 1 will be blue. Paragraph 2 will be green.
  • Both paragraphs will be green.
  • Paragraph 1 will be green. Paragraph 2 will be blue.
  • Both paragraphs will be blue.
Join our list

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.

Leave a Comment


Share via
Join our list

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.

Send this to a friend