CSS comments are usually created to explain code. It is very useful for users who read the code because it is easy to understand. Browsers ignore comments. Single line or Multiple line Comments in CSS start with /* and end with */.









Example

<!DOCTYPE html>
<html>
<head>
	<title></title>
	<style type="text/css">
		#p1 {
			color: red;
			font-size: 20px;
		}
		/* css single line comment*/
		/* CSS multiple 
		line comment*/
	</style>
</head>
<body>
<p id="p1"> CSS comments are usually created to explain code. </p>
</body>
</html>
Output

CSS comments are usually created to explain code.