While writing the CSS codes, comments should be left to leave notes to other people who will work on the project or to guide when returning and editing after the project is over.
If a CSS comment is to be written, a comment can be left between the characters that are opened with “/*” and closed with “*/”. With this method, CSS comments can be written on a single line and multiple lines.
There are 2 different ways to leave comments while writing CSS;
/* Single Line CSS Comment */
.junior-to-expert {
margin: 10px;
padding: 10px;
width: 350px;
height: 200px;
}
/*
Multi-Line
CSS
Comment
*/
.junior-to-expert {
margin: 10px;
padding: 10px;
width: 350px;
height: 200px;
}
Related Topics
Comments in Programming Languages