logo

Cambridge IGCSE Information and Communication Technology practice

How can you specify a comment in a CSS file?

Try the question first, then check the answer and practise the same topic again.

At a glance

MCQ

Type

cambridge_mcq

Style

Topic

Use stylesheets continued

Exam-style question

Try this first

How can you specify a comment in a CSS file?.

  1. A.// comment
  2. B.<!-- comment -->
  3. C./* comment */
  4. D.# comment

Answer and explanation

Concise answer

/* comment */

Why this is correct

CSS comments are written using the /* comment */ syntax, allowing developers to include notes without affecting the code.

Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.

Common mistake

No common mistake is linked to this question yet.

Related flashcards

Flashcard 1 of 6

Press Space to flip, arrows to move

Related practice questions