Hello guys, pls check my second work on CSS

Hi! Pls check my work. Thank you

Task One

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.

Hello @herculesovich888

Congrats! This is correct. :tada:
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?

Have a nice day,
Michael

1 Like

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.

1 Like

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;
}
1 Like