Question 150Asked in DSSSB TGT Computer Science, 7 Feb 2024, Shift 2 (12:30 PM)

Which of the following form is correct to show a ‘comments’ in the HTML language?

  1. A< – – This is a comment – – >
  2. B< – – This is a comment – –! >
  3. C< !– – This is a comment – –! >
  4. D< !– – This is a comment – – >
Show answerHide answer

Correct answer: (D) < !– – This is a comment – – >

Explanation

An HTML comment starts with <!-- and ends with -->, as in option D.

From DSSSB TGT Computer Science PYQ, 7 Feb 2024, Shift 2 (12:30 PM)

This is question 150 of DSSSB TGT Computer Science PYQ, 7 Feb 2024, Shift 2 (12:30 PM). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.