". HTML comments start with "" (two small dashes (minus sign) + greater than sign)."/> ". HTML comments start with "" (two small dashes (minus sign) + greater than sign).">

Home  >  Article  >  Web Front-end  >  What is the basic syntax of comment tags in HTML

What is the basic syntax of comment tags in HTML

尚
Original
2020-04-16 11:35:246470browse

What is the basic syntax of comment tags in HTML

The basic syntax of comment tags in HTML is "".

htmlThe comment code starts with "" two small horizontal bars (minus sign) greater than symbol.

Example:

<!DOCTYPE html>
<html>

<body>

<!--这是一段注释。注释不会在浏览器中显示。-->

<p>这是一段普通的段落。</p>

</body>
</html>

The effect is as follows:

What is the basic syntax of comment tags in HTML

##Recommended tutorial:

html introductory tutorial

The above is the detailed content of What is the basic syntax of comment tags 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