<p class="red yellow">Which color will this text be?</p>

CSS rules:
p.yellow{
    color:yellow;
}
.red{
    color:red;
}

Which color will text in the paragraph has?
Explanation
Answer: yellow, because. p.yellow has a higher priority.

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback