Home»Howto»HTML/CSS/JS»Comments in CSS

Add comment in CSS file

1. Add the first part of the CSS comment

/*

2. Write the text or information you want hidden

3. Close the comment:

*/

Tips:

1. Comments can span multiple lines.

2. Comments can include CSS elements that you don't want in the document, but don't want to delete completely.

3. Use comments whenever you write complicated CSS to add clarification.

See details in this site.

Latest News: