What does the canonical annotation declaration in html look like?

青灯夜游
Release: 2021-11-17 13:44:06
Original
6861 people have browsed it

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.

What does the canonical annotation declaration in html look like?

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:

<!-- 在此处写注释 -->
Copy after login

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>
<!-- 记得在此处添加信息 -->
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template