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