In this example, what styles will be applied to which elements?

section {
color: gray;
}
<section>
<p>paragraph</p>
<a href=”#”>link</a>
</section>

  • The paragraph and link will be gray.
  • The background color of the section element will be gray.
  • The paragraph will be gray. The link will be the browser default, black.
  • Only the paragraph will be gray.
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
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.

Send this to a friend