CSS initial keyword
Example
Settings
The text color inside the element is red, but for the
element, keep the initial color:
div
{
color:
red
;
}
h1
{
color:
initial
;
}
Try it »
Browser support
The numbers in the table indicate the first browser version that supports the keyword.
| The 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 with any CSS property on any HTML element.
| Version: | CSS3 |
|---|---|
| JavaScript syntax: | object.style.property="initial" Try it |
CSS Syntax
property
: initial;
Related Articles
CSS inherit Keyword:inherit keyword
CSS Reference Manual