Multiple choice technology web technology

How do you insert a comment in a CSS file?

  1. // this is a comment

  2. /* this is a comment */

  3. ' this is a comment

  4. // this is a comment //

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

In standard CSS, comments are written using /* to start and */ to end, allowing for both single and multi-line comments. The double-slash // syntax is JavaScript-style and not valid in CSS (though some CSS preprocessors may support it).