Advertisement
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
Join our list
Subscribe to our mailing list and get interesting stuff and updates to your email inbox.