Form
<!-- -->
Attributes
attribute |
default |
description |
none |
none |
none |
Explanation
The (!-- --) tag denotes a comment. In
Internet Explorer, even if a content is enclosed in the
<comment> tag, it will be treated as the comment.
This tag may be used like <!--‹ž--> at the head of a page to detect a character code in Yahoo JAPAN (in this case, it is used to detect the character encoding of a page as the EUC encoding).
You can also use this tag for designating targeting sections in your site's content by using the Google AdSense. This is described as follows.
attribute |
default |
<!-- google_ad_section_start --> |
The start of the targeting section |
<!-- google_ad_section_end --> |
The end of the targeting section |
<!-- google_ad_section_start(weight=ignore) --> |
The start of the section of the ignored content |
<!-- google_ad_section_end --> |
The end of the section of the ignored content |
<!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>
<!-- This comment won't be displayed -->
</p>
</body>
</html>