SASS | Comments
Comments in SASS is very similar to the comments in any other programming language. But the difference comes when we talk about the type of comments will be there in the compiled CSS file.
There are two types of comments in Sass:
- Silent Comments: Silent comments are single-line comments. When we compile Sass file these comments don’t reflect in compiled CSS file means these comments will not be there in CSS file.
See the example below to get the idea:
- SCSS file:

- Compiled CSS file:

- SCSS file:
- Loud Comments: Loud comments are multiple line comments. These comments will be there in the compiled CSS file if the compiler is not in compressed mode.
See the example below to get the idea:- SCSS file:

- Compiled CSS file:

If you want to include comments even in compressed mode then put
/*!mark at the starting of comment instead of/*. These comments will always be there in the CSS file. - SCSS file:
Recommended Posts:
- SASS | @if and @else
- CSS Preprocessor | SASS
- SASS | @import
- SASS | Interpolation
- SASS | Variables
- SASS | Nesting
- SASS | @mixin and @include
- What is the difference between SCSS and SASS ?
- SASS | Placeholder Selectors
- SASS | Parent Selector
- Last-child and last-of-type selector in SASS
- SASS | Shadowing and Flow Control
- SASS | Booleans and Boolean operators
- JavaScript | Comments
- HTML | Comments
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.


