Comments

As with HTML, you can make comments so that the content between the opening and closing tag is not considered when the code is executed. This can be used to comment out the code, or give explanations. In CSS, comments are written as such: /* Some comment */.

If you want to exclude some CSS rules without deleting it, you would enclose it with the comment tags, e.g.:

/*
.some-class{
    color: #1d1d1d;
}
*/

Last updated