HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
Set the text color of the <div> element to red, but keep the initial color for <h1> elements
The initial
keyword is used to set a CSS property to its default value.
The initial
keyword can be used for any CSS property, and on any HTML element.
Version: | CSS3 |
---|---|
JavaScript syntax: | object.style.property="initial" Try it |
The numbers in the table specifies the first browser version that fully supports the initial keyword.
Keyword | |||||
---|---|---|---|---|---|
initial | 1.0 | 12.0 | 19.0 | 1.2 | 15.0 |
CSS inherit Keyword: inherit keyword