HTML & CSS · Middle · Question 35 of 75

How do the initial, inherit and unset values differ?

Explanation

initial takes the value from the CSS specification (for display that's inline, not the browser's block for div). Browser-style values are restored by revert. inherit takes the parent's computed value. unset acts as the "natural" value: inherited properties inherit, others reset to initial.

Further reading

Problem with a question

HTML & CSS · Middle · question 35

Test yourself

Take the HTML & CSS · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz