freeCodeCamp/guide/chinese/miscellaneous/challenge-dcommenter-html/index.md

12 lines
573 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

---
title: Challenge Dcommenter HTML
localeTitle: 挑战Dcommenter HTML
---
注释允许忽略代码。在HTML中通过用`<!--`和`-->`括起要忽略的代码来进行注释。
`<! - Ce texte n'apparaîtra pas puisqu'il est un commentaire ->`
您可以通过删除评论项轻松取消注释HTML代码。
**_注意_**取消注释HTML代码时要小心并记住删除注释开头和结尾的元素
**_注意_**注释可以在其他编程语言如JavaScript中以不同方式进行但删除表示注释的所有内容的一般概念也适用。