HTML注释标签

HTML注释标签| HTML注释示例| HTML注释代码生成器

HTML注释标签

<!-- This is an HTML comment --/

注释开放定界符:

<!--

评论关闭定界符:

--/

HTML注释示例

内容丰富的文字评论

要在代码中添加说明,请使用内容丰富的文本注释。

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 ...

HTML注释代码生成器

输入文字/代码进行评论:
选择评论类型:
生成的注释代码:


也可以看看

Advertising

网页HTML
快速表格