<p class="red yellow">What will be the color of this text?</p>
CSS rules:

.yellow{
     color : yellow;
}
.red{
      color : red;
}
What will be the color of the paragraph?
Explanation
Answer: red color, because second rule has more priority (it was declared last).

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Cosmo
Sign Up Now
or Subscribe for future quizzes