14 Answers
New AnswerCSS uses the same "block comment" syntax as the C-like languages - you start a comment with /* , and end it with */ . However, CSS is missing the "line comment" syntax that those languages have, where everything from // to the end of the line is commented out. .foo { width: auto; //height: 500px; background: green; } Here, the // commented out the height declaration.
Hello, George ! Welcome to the community of SoloLearn! Please use SoloLearn's search for lessons, I'm sure you'll find the right answer/lesson. Good luck in programming on SoloLearn! https://www.sololearn.com/learn/CSS/1081/?ref=app
comments in css https://developer.mozilla.org/en-US/docs/Web/CSS/Comments comments on java https://www.geeksforgeeks.org/comments-in-java/
Sololearn Inc.
535 Mission Street, Suite 1591Send us a message