HTML Home
HTML Tags Reference
Selected Reading
© 2011 TutorialsPoint.COM
|
HTML <comment> and <!--...--> tags
Function:
The HTML <comment> tag allows authors to comment their HTML code. This tag is supported by IE only.
It is recommended to use <!--....--> to comment your tags. This tag is compatible to all browsers.
Difference between HTML and XHTML:
NONE
Example:
<p>Following is a comment in Netscape</p>
<comment>This is Commented line in IE</comment>
<!-- This is also a commented line -->
|
This will produce following result in IE:
Following is a comment in Netscape
This is Commented line in IE
|
Online Practice:
To Become more comfortable - Do Online Practice
|
|
|