How to make a comment in CSS

When you want to explain your code to your co workers or for your later self, it is a good practice to add comments to the code you have written. Comments are not executed and give you the possibility to describe why you did something. It can save a lot of time if you describe what is what in your code for later debugging. Unfortunately every programming code has its own way to make comments. CSS is no exception. In this article I will explain how you can make comments in CSS.

How to make comments in Style Sheets

  • Use the following syntax to make a comment in CSS /* comment */