Comments are the statements in your code that are ignored by the compiler and are not executed. Comments are used to explain the code. They make the program more readable and understandable.
/* content */
Comment can be single line or multi-line.
Note: The outputs are the same because comments are ignored by the browser and are not interpreted.
Example 1: This example describes the single line comment.
Example 2: This example describes the multi-line comment.
Supported Browsers: The browsers supported by CSS | Comments are listed below:
- Google Chrome
- Internet Explorer
- Apple Safari