HTML 评论标签| HTML 注释示例| HTML评论代码生成器
<!-- This is an HTML comment -->
评论开放分隔符:
<!--
注释结束分隔符:
-->
当您想要向代码添加解释时,请使用信息性文本注释。
HTML 代码:
<!-- this is a single line comment -->
<p> some text ... </p>
<!--
this is
a multiline
comment
-->
<p> some more text ... </p>
结果页面视图:
some text ...
some more text ...
当您想让代码保持非活动状态时,请使用代码注释。
HTML 代码:
<!-- <p> some text ... </p> -->
<!--
<p> some text ... </p>
<p> some text ... </p>
-->
<p> some more text ... </p>
结果页面视图:
some more text ...