HTML Comments

Comments are primarily used to explain code or add notes in HTML document which will not display while rendering by the browser. They can be inserted in any section of an HTML document.

Comments Example

Below example will demonstrate the basic architecture of HTML Comments.

<!doctype html>  
<html>

    <head>
        <title>HTML Comment Example</title>
    </head>

    <body>
        <p>Following are comments</p>
  <!--Comment Line-->
    </body>

</html>