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.Related Questions on Basic CSS
A. Color Style Sheets
B. Cascade Sheets Style
C. Cascade Style Sheet
D. Cascading Style Sheets
Which of the following attributes is used to specify elements to bind style rules to?
A. id
B. class
C. tag
D. all of the mentioned

Join The Discussion