LinkedIn CSS Skill Assessment Quiz Answers

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

Latest Update on 23rd March, 2022 by Certification Course Answers

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

Correct Answer:

  •  The first letter in paragraphs 1, 3, and 5 will be red.

Latest Updates

No posts found in this category.