Home >>CSS Tutorial >CSS Comments
In order to add explanatory notes to the code or to prevent the browser from interpreting specific parts of the style sheet, CSS comments are used.
To explain your code CSS comments are generally written.Please be informed that comments have no effect on the layout of a document, by design.
The comment syntax in the CSS generally works both multi-line and single line comments and the user can add as many comments they like to their stylesheets.
Lets's understand withe the help of a example
<!DOCTYPE html> <html> <head> <style> H1 { color: blue; /* This is a single-line comment */ text-align: center; } /* This is a multi-line comment */ </style> </head> <body> <H1>Hello PHPTPOINT</h1> <H1>This is my first comment in the CSS..</h1> </body> </html> </html>