CSS initial keyword

Example

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

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

Try it yourself

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

Table numbers indicate the first browser version that fully supports this attribute.

keyword Chrome IE Firefox Safari Opera
initial 1.0 12.0 19.0 1.2 15.0

CSS গ্রামাত্মক

property: initial;

সংশ্লিষ্ট পাতা

CSS inherit কীভাবে:inherit কীভাবে