How is a comment written in HTML code?

  • -- Comment -- 
  • /* Comment */ 
  • // Comment 
  •  
In HTML, comments are written between . It's essential to know this as comments can be used to provide explanations or annotations within the code, but they won't be displayed on the web page. This is different from some other programming and scripting languages where other symbols might be used for comments. 
Add your answer
Loading...

Leave a comment

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