CSS initialKeywords

CSS Reference


Example

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

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

Try it Yourself »

Browser Support

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

Keywords
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 on any HTML element.

version: CSS3
JavaScript Syntax: object.style.property="initial" Try it Yourself


CSS Syntax

property: initial;


Related Articles

CSS inherit keyword:inherit keyword


CSS Reference

other extensions