【发布时间】:2010-10-01 08:43:36
【问题描述】:
根据标题;是否可以在有效的 HTML 中嵌套 cmets?看下面的例子……
<p>some text</p>
<!-- comment 1
<p>commented out html</p>
<!-- comment 2
// are nested html comment allowed?
end of comment 2 -->
<p>more commented out html</p>
end of comment 1 -->
<p>some more text</p>
似乎没有,有人知道我如何让嵌套的 cmets 工作吗?
【问题讨论】:
-
...或者我认为不可能,但也许比我更有经验的人会知道!
-
如果对 HTML 中的有效内容有疑问,我通常会直奔主题并严格遵守标准。具体来说,validator.w3.org 的 W3C 标记验证服务
标签: html validation comments