×

Html & Html5

The World's best Software Development Study Portal

HTML Comments


Comment tags are used to insert comments in the HTML source code. Comments are not displayed by the browser, but they can help document your HTML source code i.e. only for code description.

Let's understand this by the following example:


<p > This is a comment Example. </p>

<!-- This is a comment -->
<!-- Comments are not displayed in browser -->

Output:


This is a comment Example


Output: