Q43
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
AnswerAnswer: Option D
Solution
Answer: Option D
Solution:
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.