CSS Comment
by
Anuj Kumar
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> |
Tags: CSS Comment Tutorial
Anuj Kumar
Hi, I’m Anuj Kumar — a web developer skilled in PHP, Laravel, CodeIgniter, MySQL, and Bootstrap. I love creating student-focused projects and sharing coding tips to help developers build real-world solutions with ease.
I specialize in building clean, responsive, and scalable web applications that solve real-world problems. I enjoy working on student-friendly project ideas, sharing coding tips, and helping beginners grow their development skills.
Through this website, I aim to simplify complex concepts, provide ready-to-use project solutions, and support the developer community with practical resources.
You may also like...