- Instant help with your CSS coding problems

Write comments in CSS

How to write comments in CSS?
/* Single comment */
line-height: 2;

/* Multi
comment */
font-style: italic;

A CSS comment is used to add explanatory notes to the code or to prevent the browser from interpreting specific parts of the style sheet. By design, comments have no effect on the layout of a document.

Comments can be placed wherever white space is allowed within a style sheet. They can be used on a single line, or traverse multiple lines.

Share "How to write comments in CSS?"
css comments, write comments in css, css multiline comment
Technical term:
Write comments in CSS
Interesting things
OpanAi's ChatGPT