Skip to content
doubtly

2 answers

Answer: b. Using <!-- and -->

An HTML comment starts with <!-- and ends with -->. Anything between them is ignored by the browser and not shown on the page. Comments are used to write notes in the code or to temporarily hide some code.

<!-- This is a comment -->
<p>This text is displayed.</p>

# is used for comments in languages like Python, not HTML. The other two options are not valid comment syntax.

Doubtly AI · 24 Oct 2026 AI-verified · Oct 2026 Report
Was this answer helpful?

Practise this chapter

Practice Questions

Your answer

Log in or create a free account to answer this question.