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

Share on facebook
Share on twitter
Share on linkedin
Share on pinterest

In this 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>

  • blue
  • red
  • yellow
  • green
0/5 (0 Reviews)

Like this article?

Share on facebook
Share on twitter
Share on linkedin
Share on pinterest

Related Posts