How To, HTML/CSS

How to Include Comments in CSS

Comments in CSS are generally used to explain the purpose of style CSS properties are declared. Purpose of the Write Comments in...

Written by Bikash · 38 sec read >
How to Include Comments in CSS

Comments in CSS are generally used to explain the purpose of style CSS properties are declared.

How to Include Comments in CSS
Include Comments in CSS

Purpose of the Write Comments in CSS

Comments in CSS are useful for remote persons to understand the purpose of the code.

Comments are not displayed on the browser. CSS Comments are start with /* and ends with */ . Now you can see all the examples and types on CSS comments.

Types of Comments in CSS

There are two types CSS comments,

  1. Single line Comment.
  2. Multi line Comment.

Single Line Comment in CSS

Here, you can see how we declare single-line comments are,

See the Pen single line CSS comment by Bikash Panda (@phpcodertech) on CodePen.

Multi Line Comments in CSS

Here, you can see how we write multi line comments are,

See the Pen multi-line comment in CSS by Bikash Panda (@phpcodertech) on CodePen.

Here is the complete reference about how to Write Comments in CSS.

Also Check:

Happy Coding..!

Was this article helpful?
YesNo
Written by Bikash
My name is Bikash Kr. Panda. I own and operate PHPCODER.TECH. I am a web Programmer by profession and working on more than 50 projects to date. Currently I am working on the web-based project and all the CMS and frameworks which are based on PHP. Profile

3 Replies to “How to Include Comments in CSS”

Leave a Reply

Your email address will not be published. Required fields are marked *