Complete the code to write a CSS comment.
/* [1] This is a comment */The correct way to write a comment in CSS is to enclose the comment text between /* and */. The blank is for the comment text itself.
Complete the code to comment out the CSS rule.
[1] .box { color: red; } [2]
To comment out a block in CSS, you use /* at the start and */ at the end. Here, the blanks are for the opening and closing comment tags.
Fix the error in this CSS comment.
/* This is a [1] comment */The comment text should not contain the comment end token */ inside it. The correct option is just plain text inside the comment.
Fill both blanks to write a multi-line CSS comment.
[1] This is a multi-line comment [2]
Multi-line comments in CSS start with /* and end with */. The text in between can span multiple lines.
Fill all three blanks to comment out two CSS rules.
[1] .header { color: blue; } [2] .footer { color: green; } [3]
To comment out multiple CSS rules, you start with /*, then write the rules, close the comment with */. Here, the first blank is the comment start token, and the second and third blanks should be the comment end tokens if closing multiple comments, but typically only one comment block is needed.