Sail E0 Webinar
Question
What will happen in this case?
h1 {color: "green";}
Options:
A .  heading becomes green
B .  heading becomes dark-green
C .  error occors
D .  nothings happen
Answer: Option D
Explanation: The correct syntax for setting the color of a heading using CSS is h1 {color: green;}, not h1 {color: "green";}. The quotation marks around the color value are not valid so it nothing will happen. as Error in css is ignored

Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers