HTML Comments

 

  • 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.
  -->



Related Posts:

  • INLINE ELEMENTS Inline Elements don't start on a new line. It only takes the width required to cover the content.HTML elements are generally divided into two ca… Read More
  • iFrames in HTMLWhat is an iFrame?An iFrame is an HTML element that enables an inline frame for the embedding of external content. Essentially, you can load another w… Read More
  • Video & Audio Tags<video> TagThe <video> HTML element embeds a media player that supports video playback into the document.The <video> tag create… Read More
  • block level element What are Block-level Elements?Block-level elements are those that start on a new line and take up the entire width of their container by default… Read More
  • More on Tables Adding a CaptionTo add a title to your table, you can use the <caption> element. This element helps both in terms of SEO and acc… Read More

0 Comments:

Post a Comment

Do leave your comments