HTML Comments

DevJunctionPoint
0

 

  • it is used to understand the code written by someone.
  • the browser will ignore the comments 

Types of Comments in HTML

Single-line Comments

  • Single-line comments are contained within one line. 

  <!-- This is a single-line comment -->

Multi-line Comments

  • Multi-line comments span across multiple lines, making them ideal for detailed explanations or temporarily disabling blocks of code.

<!-- 
  This is a multi-line comment.
  It spans multiple lines.
  -->



Tags

Post a Comment

0Comments

Do leave your comments

Post a Comment (0)

#buttons=(Ok, Go it!) #days=(20)

Our website uses cookies to enhance your experience. Check Now
Ok, Go it!
To Top