..]."/> ..].">

Home  >  Article  >  Web Front-end  >  How to add comments in html

How to add comments in html

coldplay.xixi
coldplay.xixiOriginal
2021-04-27 15:26:2352427browse

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].

How to add comments in html

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn