Using initial Keyword

The initial keyword resets a property to its default value.

Preview

Code

<style>
.parent{
color:#ef4444;
}

.child{
color:initial;
}
</style>

<div class="parent">
<p class="child">This text resets to default color.</p>
</div>

More CSS Inheritance Examples (8)