HTML Comment Tag

HTML <!---.....---> Comment Tag The HTML Comment Tag is used to make the most important comment that will not appear on your HTML page, only the comment will be shown…

1 min read

HTML <!—…..—> Comment Tag

The HTML Comment Tag is used to make the most important comment that will not appear on your HTML page, only the comment will be shown in your back end but not in the font.

Example:-

<!DOCTYPE html>
<html>

   <head>
      <title>HTML comment <!--....--> Tag</title>
   </head>

   <body>
      
      <h1>This is Comment tag </h1>
      
           <!-- This is a commented line supported by almost every browser.
         It will not appear in the output as it's a comment. -->
         
   </body>

</html>

Output:-

This is Comment tag


Note:- In the back end, you use the comment tag to hide any tag or div or extra… in the front end in the code editor.

Khushal

Welcome to my corner of the web! I'm Khushal Tank, a passionate web developer and the author behind MyProgramming.com. With a robust background in PHP, Webflow, HTML, CSS, and JavaScript, I've dedicated myself to crafting seamless, interactive, and visually appealing websites.

One thought on “HTML Comment Tag

Leave a Reply

Your email address will not be published. Required fields are marked *