Commenting

Learn how to add comments to our CSS.

We'll cover the following...

CSS comments

A CSS comment is typically used to add additional notes to our code. These comments aren’t read by the browser. We can also use comments to hide or “comment out” a section of code. This prevents the browser from running it as a part of the program.

The syntax

A comment looks like this:

/* This is a comment */
...