" symbol to comment a single line in the content within the body tag."/> " symbol to comment a single line in the content within the body tag.">
Home >Web Front-end >Front-end Q&A >How to comment a single line in html
How to comment a single line of html: First create an HTML sample file; then in the html document, use the "" symbol in the content within the body tag to comment a single line.
The operating environment of this article: Windows7 system, HTML5&&CSS3 version, Dell G3 computer.
Single-line and multi-line comments in the html document are "".
1. In HTML documents, the content in the body tag can be commented in single or multiple lines using "":
In the HTML document, the content in the script tag can be commented in single or multiple lines using "//":
In HTML documents, the content in the style tag can be commented in single or multiple lines using "/* */":
【Recommended learning: HTML video tutorial】
The above is the detailed content of How to comment a single line in html. For more information, please follow other related articles on the PHP Chinese website!