-
What will be the output of following code snippet?
h1 {color: red text-decoration: underline; font-style: italic;}
-
- only font-style: italic works
- _red, text-decoration_ underline works
- _red, text-decoration_ underline and font-style_ italic all works
- _underline and font-style_ italic works
- None of these
Correct Option: A
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.