comment

Form

<comment> ... </comment>

Attributes

attribute default description
none none none

Support

Microsoft (MSDN)
[IE3 or later]

Explanation

The comment tag denotes a comment in Internet Explorer. This tag works only in Internet Explorer. Normally use <!-- --> as comment except a special case.

Related Tags

<!-- -->

Sample Code [Output]

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=shift_jis">
<title>Sample</title>
</head>
<body>
<h1>Sample</h1>
<p>
Comments won't be displayed on a page.<br>
<comment>This comment won't be displayed in IE.</comment>
</p>
</body>
</html>