". 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
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:
##Recommended 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!