Loading Please Wait...

Logo Lynxsia IT Solutions

CSS Comments

CSS Comments

CSS comments are ignored by the browser and not displayed in the browser. But comments help us in documentation.

CSS Comments

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... */

Single Line Comments
					 
        
          /* 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 */
          }
        
      
Multiline Comments
					 
        
          /*
            This is a multi line comments
            to describe long content
            and full functionality
          */
          .text-green{        
            color: green;
          }
        
      
HTML And CSS Comments
					 
        
          <!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:

Report Us

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 Us
Ads
Logo
Lynxsia IT Solutions

We 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..

Kotwali Road, Chhiptehri, Banda, 210001, UP, India

Copyright © 2022, Lynxsia IT Solutions, All rights reserved