HTML - Comments

In HTML with comments are not displayed by the browser,but they can help document your HTML source code.with comments you can place notifications and reminders in your HTML.the following simple syntax of comments in HTML.

Syntax


<!-- Your Text Here -- >
							

Example


<html>
<head>
	<title>Paragraphs</title>
</head>
<body>
<!-- This is Simple Comment in This Document -->
<p>This is sample paragraph used with <p> tag.</p>
<p>
   The Veewom is largest tutorials and educational website on the internet.
</p>
</body>
</html>
							

Conditional Comments

Example


<!--[if IE 9]>
    .... some HTML here ....
<![endif]-->
							
Share Share on Facebook Share on Twitter Share on LinkedIn Pin on Pinterest Share on Stumbleupon Share on Tumblr Share on Reddit Share on Diggit

You may also like this!