<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
Keep exploring
HTML & CSS quizzes
Cosmo
Sign Up Now
or Subscribe for future quizzes