Home » CSS » Css miscellaneous » Question
  1. What will be the output of following code snippet?
    h1 {color: red text-decoration: underline; font-style: italic;}
    1. only font-style: italic works
    2. _red, text-decoration_ underline works
    3. _red, text-decoration_ underline and font-style_ italic all works
    4. _underline and font-style_ italic works
    5. 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.



Your comments will be displayed only after manual approval.