html

2.1单行注释:

  1. <!-- Comment Text -->
  2. <div>...</div>

2.2模块注释:

注释内容前后各一个空格字符,

  1. <!-- S Comment Text --> 表示模块开始,
  2. <!-- E Comment Text --> 表示模块结束,模块与模块之间相隔一行。

eg:

  1. <!-- S Comment Text A -->
  2. <div class="mod_a">
  3. ...
  4. </div>
  5. <!-- E Comment Text A -->
  6. 【模块与模块之间相隔一行。】
  7. <!-- S Comment Text B -->
  8. <div class="mod_b">
  9. ...
  10. </div>
  11. <!-- E Comment Text B -->

2.3嵌套模块注释

注释写在模块结尾标签底部,单独一行

  1. <!-- S Comment Text A -->
  2. <div class="mod_a">
  3. <div class="mod_b">
  4. ...
  5. </div>
  6. <!-- /mod_b -->
  7. <div class="mod_c">
  8. ...
  9. </div>
  10. <!-- /mod_c -->
  11. </div>
  12. <!-- E Comment Text A -->