codegurukool.com · Free coding tutorials & online compiler

Home › CSS Tutorial › CSS comments

CSS comments

Notes inside a stylesheet.

Comments start with /* and end with */. They can span lines.

Example code

<style>
/* This is a comment */
p{color:green;/* inline note */}
</style>
<p>Green text</p>

Run this code in the online editor

← CSS how toCSS errors →