In HTML, the standard annotation statement is "". The HTML comment tag is "<!--...-->". What is wrapped by "" is the content that needs to be commented. The browser will not display these comment contents. ;Users can use comments to place notifications and reminders in HTML.
The operating environment of this tutorial: Windows 7 system, HTML5 version, Dell G3 computer.
In HTML, the standard comment declaration is "<!--Comment content -->
".
The HTML comment tag is "<!--...-->
"
The comment tag is used to insert comments in the source code. Comments will not be displayed in the browser.
You can use comments to explain your code, which will help you edit the code at a later time. Especially useful when you write a lot of code.
You can add comments to HTML source code with the following syntax:
<!-- 在此处写注释 -->
Comment: There is an exclamation point in the opening tag, but not in the closing tag.
You can use comments to place notifications and reminders in HTML:
Example
<!-- 这是一段注释 --> <p>这是一个段落。</p> <!-- 记得在此处添加信息 -->
Recommended tutorial: "html video tutorial"
The above is the detailed content of What does the canonical annotation declaration in html look like?. For more information, please follow other related articles on the PHP Chinese website!