..]."/> ..].">
Home > Article > Web Front-end > How to add comments in html
How to add comments to html: 1. Single-line comments, in the format [4a249f0d628e2318394fd9b75b4636b1..473f0a7621bec819994bb5020d29372a]; 2. Multi-line comments, in the format [5bc5f90fdfa632f0e2c19172ddd87a4c]; 3. Conditional comments, the format is [4ec11beb6c39d0703d1751d203c17053..2cacc6d41bbb37262a98f745aa00fbf0].
The operating environment of this tutorial: windows7 system, html5 version, DELL G3 computer.
How to add comments to html:
1. Single-line comments
<h1>html 注释标签的详细介绍</h1><!-- 文章标题-->
Description: You can tell at a glance through the comments that the title of the article is in front of it.
2. Multi-line comments
<!-- <p>这是文章的一个段落</p> <p>这是文章的一个段落</p> -->
Description: When there are bugs in the code, you can use comment tags to troubleshoot!
3. Conditional comments
<script type="text/javascript"> <!-- 这是一段JavaScript代码 //--> </script>
Related learning recommendations: html video tutorial
The above is the detailed content of How to add comments in html. For more information, please follow other related articles on the PHP Chinese website!