Easy Tutorial
❮ Prop Style Columnrulewidth Event Type ❯

CSS initial Keyword

CSS Reference Manual

Example

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

div {color: red; }
h1 {color: initial; }

Browser Support

The numbers in the table indicate the first browser version that supports the keyword.

Keyword
initial 1.0 12.0 19.0 1.2 15.0

Definition and Usage

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

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

Version: CSS3
JavaScript Syntax: object.style.property="initial" Try it
--- ---

CSS Syntax


Related Articles

CSS inherit Keyword: inherit Keyword

CSS Reference Manual

❮ Prop Style Columnrulewidth Event Type ❯