The Developer Brains


CSS3 COMMENTS

Web Designing | Web Development


SEE MORE














</CSS3 COMMENTS>




What is CSS3 Comment?

Comments are ignored by web browsers. Comments are used to explain the code, and comments may help you in edit code at a later time. Comments do not affect the code.



SEE MORE
























</How to Use Comments in CSS3>

There are two types of comment available in CSS


A Single Line Comment

Single line comment is used to hide a single line of the source code.
	
		<style>
			/*comment*/
			/*h1{color:red}*/
			p{background-color:green;/*height:500px*/}
		</style>
	
	

A Multi Lines Comment

We can use Multiple lines comment to hide multiple lines of source code.
	
		<style>
			/*multi-line comment*/
			/*h1{color:red}
			p{background-color:green;height:500px}*/
		</style>
	
	



	<!DOCTYPE html>
<html>
	<head>
		<style>
		/*single line comment*/
		/*h1{color:red}*/
		/*multiple lines comments*/
		/*p{background-color:green;height:500px}
		h1{color:pink}*/
		h1{color:green}
		</style>
	</head>
<body>
<h1>Hello world!</h1>
</body>
</html>



Try it Yourself




















If we want to hide multiple lines of code, we use .....

1. Single Line Comment
2. Multi-Line Comment




Check Now



CSS3 QUIZ







Next: Give a pro look to web pages by applying attractive CSS3 Colors


Previous

      

Next Page













  Share TDB SCHOOL  

Share this E-Learning Website on social media platforms with your friends and followers