Question #13

Author: admin
tags: HTML   CSS   frontend (web)  
<div class="red green">text1</div>
<div class="green red">text2</div>
.green { color: green; }
.red { color: red; }
What color will the text have?
text1 - green, text2 - green
text1 - green, text2 - red
text1 - red, text2 - green
text1 - red, text2 - red
The order in which class names are written in the class attribute does not affect the order in which they are applied.
But with the same specificity, the order of writing classes in CSS is important.
Rate the difficulty of the question:
easyhard