Home  >  Article  >  Web Front-end  >  How to comment multiple lines in html

How to comment multiple lines in html

PHPz
PHPzOriginal
2023-04-24 09:10:094368browse

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 "