LinkedIn CSS Skill Assessment Quiz Answers

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

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

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

article p {
  color: blue;
}
article > p {
  color: green;
}
<article>
  <p>Paragraph 1</p>

  <aside>
    <p>Paragraph 2</p>
  </aside>
</article>
  1.  Paragraph 1 will be blue. Paragraph 2 will be green.
  2.  Both paragraphs will be green.
  3.  Paragraph 1 will be green. Paragraph 2 will be blue.
  4.  Both paragraphs will be blue.

Correct Answer:

  •  Paragraph 1 will be green. Paragraph 2 will be blue.

Latest Updates

No posts found in this category.