+ 1

Comments

How do you put comments on css

22nd Jul 2018, 6:05 PM
George
George - avatar
14 RĂ©ponses
+ 11
CSS 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.
22nd Jul 2018, 6:07 PM
Scooby
Scooby - avatar
+ 5
/* Comment */
22nd Jul 2018, 6:06 PM
TurtleShell
TurtleShell - avatar
+ 5
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
22nd Jul 2018, 6:19 PM
Alexander Sokolov
Alexander Sokolov - avatar
+ 2
For single line comment use //comment And for multiple line comment use /*comment*/
18th Oct 2020, 2:45 PM
Mintu Goyal
Mintu Goyal - avatar
0
You make the comment in CSS by doing this: /*Comment goes here*/
22nd Jul 2018, 7:37 PM
coolboy7
coolboy7 - avatar
23rd Jul 2018, 2:39 AM
deepak sharma
deepak sharma - avatar
0
The text in side the /* */ is treated as comment in css
23rd Jul 2018, 6:04 AM
Dare$devil
Dare$devil - avatar
0
you write text between /* and */
18th Nov 2019, 11:35 AM
Gabi
0
/* Write comment */
9th Mar 2020, 8:31 AM
Ibrohim
Ibrohim - avatar
0
You write a comment in css with a: /* comment */
12th Jun 2020, 10:05 AM
Girish Raj Adhikari
Girish Raj Adhikari - avatar
0
You can type like this /* This is a comment */
9th Nov 2020, 5:07 AM
Ma. Deanne Grace G. Anorico
Ma. Deanne Grace G. Anorico - avatar
0
/*put your comment here*/ This is how you write comments in css
3rd Dec 2020, 7:06 AM
Joy Mike
Joy Mike - avatar
0
/*these are comments in css*/
9th May 2021, 5:47 AM
KashishAggarwal
KashishAggarwal - avatar