CSS initial Keyword
Example
Sets the text color of the <div> element to red, but retains the initial color of the <h1> element:
div { color: red; } h1 { color: initial; }
Definition and Usage
initial
Keywords are used to set CSS properties to their default values.
initial
Keywords can be used for any CSS property and any HTML element.
Version: | CSS3 |
---|---|
JavaScript Syntax: | object.property="initial" |
Browser Support
The numbers in the table indicate the first browser version that fully supports this property.
Keyword | Chrome | IE | Firefox | Safari | Opera |
---|---|---|---|---|---|
initial | 1.0 | 12.0 | 19.0 | 1.2 | 15.0 |
CSS Syntax
property: initial;
Related Pages
CSS inherit keyword:inherit keyword