HTML & CSS · Middle · Question 35 of 75
How do the initial, inherit and unset values differ?
- 1They're synonyms: all three reset the property to the browser default
- 2
initialcomes from browser styles,inheritfrom:root,unsetremoves the property - ✓Correct answer:
initialis the spec value,inheritcomes from the parent,unsetis one of the two depending on the property
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.