Examveda
Examveda

What will happen in this case?
h1 {color: red text-decoration: underline; font-style: italic;}

A. color: red, text-decoration: underline and font-style: italic all works

B. text-decoration: underline and font-style: italic works

C. color: red, text-decoration: underline works

D. only font-style: italic works

Answer: Option D

Solution(By Examveda Team)

In this case, we should see the browser continue to parse the value of color as “red textdecoration: underline” before it sees a closing semicolon. The font-style property that follows would then be used. Because the color property has an illegal value, it should be ignored.

This Question Belongs to CSS >> Basic CSS

Join The Discussion

Related Questions on Basic CSS