CSS Tutorial Series

CSS tutorial : Comments

Pug tutorial series pugjs tutorial introduction

Inside this article!


  1. Comments
  2. Types of comments



Comments

In programming, a comment is a programmer understandable text written :

  1. Explain the code
  2. Help other programmers with the logic used
  3. It may help when you edit the code later
In CSS , comments start with /* and ends with */.

Types of Comments

Comments are of 2 types:

  1. Single Line Comments : As the name suggests, comments which start and ends in single line are termed as single line comments.Example is given below :
    													
    h1 {
        color: gray;
        /* SIngle line comment */
    }
    													
    												

  2. Multi Line Comments : Comments which span multiple lines are termed as multi line comments. Example is given below :
    												
    h1 {
        color: gray;
        /* 
    		Comment 
    		spans over
    		multiple 
    		lines
    	*/
    }