Home > Web Front-end > Front-end Q&A > How to comment multiple lines in html

How to comment multiple lines in html

PHPz
Release: 2023-04-24 10:02:13
Original
4475 people have browsed it

HTML multi-line comments refer to adding multi-line comments in HTML documents, mainly to facilitate developers to comment and annotate the code, and to facilitate code maintenance and management. This article will introduce in detail the usage and precautions of multi-line HTML comments.

1. How to use multi-line HTML comments

In HTML documents, adding multi-line comments requires the use of a specific comment format. The following is how to use HTML multi-line comments:

"

to the last line of the comment. In addition to multi-line comments, HTML also supports single-line comments. The format of a single-line comment is:

In a single-line comment, only one "" or "