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

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

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Keep exploring
HTML & CSS quizzes
Sign Up Now
or Subscribe for future quizzes