+ 1
Comments
How do you put comments on css
14 odpowiedzi
+ 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.
+ 5
/* Comment */
+ 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
+ 2
For single line comment use
//comment
And for multiple line comment use
/*comment*/
0
You make the comment in CSS by doing this:
/*Comment goes here*/
0
comments in css
https://developer.mozilla.org/en-US/docs/Web/CSS/Comments
comments on java
https://www.geeksforgeeks.org/comments-in-java/
0
The text in side the /* */ is treated as comment in css
0
you write text between /* and */
0
/* Write comment */
0
You write a comment in css with a:
/* comment */
0
You can type like this
/* This is a comment */
0
/*put your comment here*/
This is how you write comments in css
0
/*these are comments in css*/