CSS Comment
CSS comment is used to comment on the code. It is the best way to understand the code.
The Commented code are ignored by the browser.
CSS Comment Tutorial – In CSS, Single and Multiple Comments are written within /*…..*/ character.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
<!DOCTYPE html> <html> <head> <style> H1 { background-color: red; /* This is a single-line comment */ text-align: center; } /* This is a multi-line comment Its code ignored by browser. */ </style> </head> <body> <h1>CSS Comments</h1> </body> </html> |