
Comments are used to hide content.
To create hidden comments in HTML, we add tag and end it with — >. Whatever comes inside this tag it is hidden. These comments allow us to easily understand the code.
评论可以被视为对自己的注释,也可以让其他人理解代码,同时隐藏HTML代码,使得浏览器不会在网页上显示它。
语法
以下是在HTML中隐藏注释的语法。
立即学习“前端免费学习笔记(深入)”;
Example
的中文翻译为:
示例
以下是隐藏HTML中注释的示例程序。
Example
的中文翻译为:
示例
Following is another example program to hide comments in HTML.
<!--
- 1
- 2
- 3
Delhi is the capital of India
We use inline comment tag inside the
tag. To hide the content of the paragraph.
Example
的中文翻译为:
示例
以下是一个隐藏HTML中注释的示例程序,使用内联注释标签。
DLF stands for Delhi Land and Finance
以上就是如何在HTML中创建隐藏的评论?的详细内容,更多请关注创想鸟其它相关文章!
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。
如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至 chuangxiangniao@163.com 举报,一经查实,本站将立刻删除。
发布者:程序猿,转转请注明出处:https://www.chuangxiangniao.com/p/1551371.html
微信扫一扫
支付宝扫一扫