". The browser will not display the content of the comment, but it can help developers record HTML documents."/> ". The browser will not display the content of the comment, but it can help developers record HTML documents.">

Home >Web Front-end >Front-end Q&A >How to comment a single line of html

How to comment a single line of html

藏色散人
藏色散人Original
2021-04-28 09:45:154354browse

In HTML, you can use the comment tags "0f22cfdea9b4f9815ce45283dc15856e" to make single-line comments. The browser will not display the content of the comment, but it can help developers record HTML documents. .

How to comment a single line of html

The operating environment of this article: windows7 system, HTML5&&CSS3 version, DELL G3 computer.

Comment tags 0f22cfdea9b4f9815ce45283dc15856e are used to insert comments in HTML.

HTML comment tag

You can add comments to HTML source code through the following syntax:

<!-- 在此处写注释 -->

Comment: There is an exclamation point in the opening tag, But not in the closing tag.

The browser will not display comments, but they can help record your HTML document.

You can use comments to place notifications and reminders in HTML:

HTML comment example:

<!--这是单行注释-->
<!--
    这是多行注释
    这是多行注释
    这是多行注释
-->

【Recommended learning: HTML video tutorial

The above is the detailed content of How to comment a single line of 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