In the following example, what color will paragraph one and paragraph two be? (Alternative: In this example, what color will paragraphs one and two be?)

<section>
<p>paragraph one</p>
</section>

<p>paragraph two</p>
section p {
color: red;
}
section + p {
color: blue;
}

  • Paragraph one will be blue, paragraph two will be red.
  • Both paragraphs will be blue.
  • Paragraphs one will be red, paragraph two will be blue.
  • Both paragraphs will be red.
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
Continue in browser
To install tap Add to Home Screen
Add to Home Screen
In the following example, what color will paragraph one and paragraph two be? (Alternative: In this example, what color will paragraphs one and two be?)
Get our web app. It won't take up space on your phone.
Install
G Certification Course We would like to show you notifications for the latest news and updates.
Dismiss
Allow Notifications
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.