CSS initial Keyword

CSS initial Keyword


Set the text color of the <div> element to red, but keep the initial color for <h1> elements:

div {
color: red;
}h1 {
color: initial;
Definition and Usage

The initial keyword is used to set a CSS property to its default value.

The initial keyword can be used for any CSS property, and on any HTML element.

Version: CSS3
JavaScript syntax: object.style.property=”initial” Try it
CSS Syntax
property: initial;