CSS Comments


CSS comments have a special syntax used to note and explain the meaning of a piece of code. It's also used to hide reusable code.

CSS comments start with /* and end with */. Any text or code within this pair of characters will be ignored by the browser. It does not affect the operation of the website.

There are 2 ways to use CSS Comment syntax: single-line comment and Multiple-Line Comment:

Syntax

/* This is Single-Line Comment */

/*
    This is Multiple-Line Comment
*/