Articles → CSS → CSS Initial Keyword

CSS Initial Keyword






Purpose





Syntax


Css-property-name:initial;



Example


<!DOCTYPE html>
<html>
	<head>
		<title></title>
		<style>
       div {
           color:red;
       }
       p {
           color:initial;
       }
   </style>
	</head>
	<body>
		<div>
        This is a div
       
			<p>
           This is a paragraph
       </p>
		</div>
	</body>
</html>







Output


Picture showing the output of the css initial keyword
Click to Enlarge


Browser Support


Internet ExplorerFirefoxChromeSafariOperaEdge
12.019.01.01.215.0Yes



Posted By  -  Karan Gupta
 
Posted On  -  Monday, October 30, 2017

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250