Cheap VPS & Xen Server


Residential Proxy Network - Hourly & Monthly Packages

CSS Comments


CSS comments are generally written to explain your code. It is very helpful for the users who reads your code so that they can easily understand the code.

Comments are ignored by browsers.

Comments are single or multiple lines statement and written within /*…………*/ .

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <style>
  5. p {
  6.     color: blue;
  7.     /* This is a single-line comment */
  8.     text-align: center;
  9. }
  10. /* This is
  11. a multi-line
  12. comment */
  13. </style>
  14. </head>
  15. <body>
  16. <p>Hello Kreationnext.com</p>
  17. <p>This statement is styled with CSS.</p>
  18. <p>CSS comments are ignored by the browsers and not shown in the output.</p>
  19. </body>
  20. </html>

Comments

comments