How do we add a comment in HTML code?

HTMLWeb DevelopmentFront End Technology

The HTML <comment> tag allows authors to comment their HTML code.

It is recommended to use <!--....--> to comment your tags. This tag is compatible with all browsers.

Note − The <comment> tag deprecated in HTML5. Do not use it.


<!DOCTYPE html>
      <title>HTML <!--....--> Tag</title>
      <comment>This is a commented line in IE</comment>
      <!-- This is a commented line supported by almost every browser.
         It will not appear in output as its a comment.
Updated on 03-Mar-2020 05:47:59