CSS Comments


Syntax

  • /* Comment */

Remarks

  • Comments in CSS always start with /* and end with */
  • Comments cannot be nested

Single Line

/* This is a CSS comment */
div {
   color: red; /* This is a CSS comment */ 
}

Multiple Line

/*
    This
    is
    a
    CSS
    comment
*/
div {
   color: red;
}