" 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>Article>Web Front-end> How to comment a single line in html

How to comment a single line in html

藏色散人
藏色散人 Original
2021-04-12 09:58:11 4531browse

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.

How to comment a single line in html

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 " ":

How to comment a single line in html

  • In the HTML document, the content in the script tag can be commented in single or multiple lines using "//":

How to comment a single line in html

  • In HTML documents, the content in the style tag can be commented in single or multiple lines using "/* */":

How to comment a single line in html

【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!

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
Previous article:How to set time in html Next article:How to set time in html