Skip to content
Related Articles

Related Articles

Improve Article

HTML | <!–…–> Tag

  • Last Updated : 19 Feb, 2020

The HTML <!–…–> Tag is used to insert comments in the HTML code. It is a good practice of coding so that the coder and the reader can get help to understand the code. It is helpful to understand the complex code. The comment tag is useful during the debugging of codes.

  • It is simple piece of code which is wiped off (ignore) by web browsers i.e, not displayed by browser.
  • It helps the coder and reader to understand the piece of code used for specially in complex source code.

Syntax:

<!-- Comments here -->

Examples:




<!DOCTYPE html>
<html>
  
<head>
    <title>
        Single line comment
    </title>
</head>
  
<body>
  
    <!-- Paragraph element -->
    <p>GeeksforGeeks</p>
</body>
  
</html>

Output:

GeeksforGeeks

Supported Browser: The browsers supported by <!– –> tag are listed below:

  • Google Chrome
  • Internet Explorer
  • Firefox
  • Opera
  • Safari

Attention reader! Don’t stop learning now. Get hold of all the important Comcompetitivepetitve Programming concepts with the Web Design for Beginners | HTML  course.

My Personal Notes arrow_drop_up
Recommended Articles
Page :