CSS Comments
CSS Comments
<pre><code>P {
color: red;
/* This is a single-line comment */
text-align: center;
}
/* This is
a multi-line
comment */</code></pre>
- Are used to explain the code, and may help when you edit the source code at a later date.
- Are ignored by browsers.
- A CSS comment starts with /* and ends with */.
- Comments can also span multiple lines:.