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>  
        <title>HTML Comment Example</title>

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