Write comments in CSS
Question:
How to write comments in CSS? Answer:
/* Single comment */
line-height: 2;
/* Multi
line
comment */
font-style: italic;
Description:
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.
Reference:
CSS comments reference
Share "How to write comments in CSS?"
Related snippets:
Tags:
css comments, write comments in css, css multiline comment Technical term:
Write comments in CSS