What is the basic syntax of comment tags in HTML

Release: 2020-04-16 11:35:24
Original
6488 people have browsed it

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>
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template