The initial
CSS keyword applies the initial (or default) value of a property to an element. It can be applied to any CSS property, including the CSS shorthand property all
. With all
set to initial
, all CSS properties can be restored to their respective initial values in one go instead of restoring each one separately.
On inherited properties, the initial value may be unexpected. You should consider using the inherit
, unset
, revert
, or revert-layer
keywords instead.