CSS Comments

Comments are used to explain the code to other developers to understand the code better. They are ignored by the browsers and not shown on web pages. A CSS comment can be added by adding /* at the start and */ at the end of the commenting statement.

Multiple lines can be commented on by adding /* at the start and */ at the end of the commenting statements.

/* This is a single-line comment */

/* This is
a multi-line
comment */
p {
  color: tomato;
}