In this task, you need to use one of the special values we looked at in the Controlling inheritance section to write a declaration in a new rule that will reset the background color back to white, without using an actual color value.
Congrats! This is correct.
Additional question: You used unset in your task which works correctly. Do you know of other special keywords that could be used in this task?
I am very glad to hear from you that I solved the task correctly. Of course Inherit and initial and revert. Inherit is the inheritance of a property from a parent. Initial is the primary value. Reward is now trying to figure out what it is. lol
There is a lot of information on the Internet, so I think it’s difficult to understand what it is, the main thing is to try to practice and understand how keywords work.
Yes, that’s right. All four keywords would give the same result in this task. revert is the newest of those four properties. You can look at it as a more reasonable version of unset because it changes the value back to the browser’s default value. Look at this example to see the difference:
/* "display is not inherited and its initial value is "inline" */
/* Becomes "inline" (initial value) */
h1 {
display: unset;
}
/* Becomes "block" (browser stylesheet value) */
h1 {
display: revert;
}