CSS Comments

What are comments?

CSS comments can be added using /* and */ to add notes and explanations to your code. Comments are ignored by the browser and can be helpful for making your code easier to read and understand. For example:

/* This is a CSS comment */

selector { /* This is also a comment */ property: value; /* This is a comment at the end of a line */ }

Last updated