CSS Comments
CSS comments are used to comment or explain your code so that users can easily understand it. A CSS comment always starts with / * and ends with * /. if you want to write a single or multiple lines comment into CSS then you can do it using the below example.
CSS single line comment
<!DOCTYPE html> <html> <head> <style> p { color: red; /* text-align: center; */ } </style> </head> <body> <p>This is a single-line comment</p> </body> </html>
CSS multiple line comments
<!DOCTYPE html> <html> <head> <style> p { /* color: red; text-align: center; */ } </style> </head> <body> <p>This is a multi-line comment</p> </body> </html>