CSS Comments: Generally, comments in CSS are used to describe our code. Further, it will provide support to many users who are concerned with the code. Somewhat, these are ignored by the browsers.

CSS comments can be multiple or one line statements. These comments begin with /* and close with */. The following example is helpful for understanding this concept:

Example:

Output:

CSS Comments

We can insert the comments inside the code whenever we want:

Example:

Output:

CSS Comments

Also, CSS comments can span numerous lines:

Example:

Output:

CSS Comments

Pin It on Pinterest

Share This