Referring to the HTML markup and CSS example below, which element(s) will be targeted?

p:first-of-type:first-letter {
color: red;
}
<body>
<p>Paragraph 1.</p>
<p>Paragraph 2.</p>

<article>
<h1>Heading</h1>
<p>Paragraph 3.</p>
<p>paragraph 4.</p>
</article>

<section>
<p>Paragraph 5.</p>
<p>Paragraph 6.</p>
</section>
</body>

  • The first letter in all paragraphs will be red.
  • Only the first letter in paragraphs 1 and 5 will be red.
  • The first letter in paragraphs 1, 3, and 5 will be red.
  • Only the first letter in paragraph 1 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
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