LinkedIn CSS Skill Assessment Quiz Answers

In the following example, according to cascading and specificity rules, what color will the link be?

Latest Update on 9th March, 2022 by Certification Course Answers

In the following example, according to cascading and specificity rules, what color will the link be?

.example {
  color: yellow;
}
ul li a {
  color: blue;
}
ul a {
  color: green;
}
a {
  color: red;
}
<ul>
  <li><a href="#" class="example">link</a></li>
  <li>list item</li>
  <li>list item</li>
</ul>
  1.  green
  2.  yellow
  3.  blue
  4.  red

Correct Answer:

  •  yellow

Latest Updates

No posts found in this category.