CSS Comment
Two type of comment in css
1 - Single line comment
2 - Multiple line comment
Example 02
/* this is single line css comment */
div{
border:1px solid red;
width:200px; /* this is single line comment */
height:140px;
}
J
Multiple Line comment
Example 02
div{
/* without border width and height of div
not display in document */
border:1px solid red;
width:200px;
height:140px;
}
J
How we Comment Use
1- By comment can easily to understand code and another developer can update easily css file
2- if you want to stop code you can use coment
Stop CSS Code By Comment
/* stop height and color property by comment */
div{
border:1px solid red;
width:200px;
/*
height:140px;
color:green:
*/
}
Note: comment not execute in css file
comment help to understanding code to next time