How to write Comment in HTML

     

  • This is HTML tag
  • It consists of begining tag and ending tag
  • <!-- this is comment -->
  • make sure there is not gap\spaces at begining of tag
  • These comments not display in web site
  • valid Comment:<!-- this is comment -->

    Invalid Comment:< !-- This is invalid comment -->       

     

     

    Coding:

    Output:

    < !-- this is invalid comment -->

    Aforementioned is the valid comment

    Download The Coding Along With Web Page