HTML and HTML5 Course
About Lesson

The comment tag (<!– Comment –>) is used to insert comments in the HTML code. It is a good practice of coding so that coder and the reader can get help to understand the code. It is helpful to understand complex code. The comment tag is useful during the debugging of codes.

 It is a simple piece of code that is wiped off (ignore) by web browsers i.e, not displayed by the browser.
It helps the coder and reader to understand the piece of code used for especially in complex source code.

Types of HTML Comments:

Single-line comment:
<!–This is single line comment –>

Multi-lines comment:
<!– This is
multi-line
comment –>

Using <comment> tag:
<comment>This is multi-line comment </comment>


Exercise Files
No Attachment Found
No Attachment Found
Join the conversation

Introducing Official ApeStaking Protocol for ApeCoin.

New Blur NFT Marketplace Courting Professional.