HTML Comments

HTML Comment Tags
Comments are used to ignore the html code by web browser.Comments are helpful for developer to understand code and increases code readability.

You can use following syntax for HTML comment:
Syntex

<!– … –>

Example

<!– HTML content goes here –>
Comment Tag in HTML

Some browsers support <comment> tag to comment a code in HTML.

Example


<!DOCTYPE html><html>
<head>
<title>Title</title>
</head>
<body>
<p>Comment <comment>Example</comment> .</p>
</body>
</html>

Leave a Reply

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