HTML Comment Tag

Comment Tag in HTML

In the previous blog, we read about the List of all HTML Tags. Here in this blog, we will cover the Comment Tag. How and where we use comment tag in HTML.

Comment Tag and Usage

The comment tag is used to write comments in the source code. Comments does not display on browsers. It explain you that the below code in the comment tag we use for this purpose, which can help you when you edit the source code later.

Comment tag makes your content easy to understand. We use comment tag to make large code easy to understand.

Use comment tag in short code also, which makes you habitual to write code with the comment tag in later dates.

NOTE: Comment Tag content does not display on browser. If you write anything in the comment tag it will make that write up hide.

For example: We are writing a bunch of code and we will see the output.



<title>This is the title</title>



<!– Paragraph start here –>

<p>This is the example of comment tag. </p>




This is the example of comment tag.


In the above example, we found the comment tag is not displaying on browser and its showing that we had used a paragraph here.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *