Loading Please Wait...
CSS comments are ignored by the browser and not displayed in the browser. But comments help us in documentation.
CSS comments help us in describing the code, label future updates, temporarily disabled style rules, debugging, etc.
CSS comments can be defined by /* and end with */
Syntax: /* Comment text here... */
/* text-green class used to make text color green */
.text-green{
color: green;
}
/* We can also place comments along side the code */
.text-green{
color: green; /* define green color */
}
/*
This is a multi line comments
to describe long content
and full functionality
*/
.text-green{
color: green;
}
<!DOCTYPE html>
<html>
<head>
<style>
p{
color: green; /* CSS Comment: Set paragraph color to green */
}
</style>
</head>
<body>
<!-- HTML Comment: define a paragraph -->
<p>This is a simple paragraph</p>
</body>
</html>
How you feel about this blog:
Share this blog on:
If you find any error in the turtorials, or want to share your suggestion/feedback, feel free to send us email at: info@lynxsia.com
Contact UsWe are concern with various development process like website design & development, E-commerce development, Software development, Application development, SMS & Bulk SMS Provider, PWA Development, and many more..
Copyright ©
, Lynxsia IT Solutions, All rights reserved