1. Home
  2. Computer Science MCQs
  3. HTML
  4. In HTML, comment line is as :

Added 20 Jan 2024

In HTML, comment line is as :

  1. // Comment Line
  2. /* Comment Line */
  3. – Comment Line —
  4. <!– Comment Line –> Correct answer

Correct answer

D. <!– Comment Line –>

13 views

MCQSEXAM

Explanation

In HTML, you can create a comment using the <!-- and --> tags. Anything between these tags will be treated as a comment and will not be displayed in the browser. Here's an example:

<!-- This is a comment in HTML -->

<p>This is a paragraph of text.</p>

Doubts & discussion

Not sure why the answer is D? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More HTML MCQs

Practise all HTML MCQs

Similar MCQs