Easy Tutorial
❮ Pr Border Collapse Sel Attribute Value ❯

CSS initial Keyword

CSS Reference Manual

Example

Set the text color within a <div> element to red, but keep the <h1> element's color as the initial color:

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

Browser Support

The numbers in the table indicate the first browser version that fully 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 HTML element for any CSS property.

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

CSS Syntax


Related Articles

CSS inherit Keyword: inherit Keyword

CSS Reference Manual

❮ Pr Border Collapse Sel Attribute Value ❯