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



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