How to Include Comments in CSS

By | October 18, 2020

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..!

Subscribe For Latest Updates

Sign up to best of PHP Code Solutions, informed analysis and opinions on what matters to you.
Invalid email address
We promise not to spam you. You can unsubscribe at any time.

Leave a Reply

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