HTML Comments

HTML Comments

HTML Comments

👉 HTML comments are not displayed in the browser, but they can help document your HTML source code.

👉 HTML Comment Tag

  • You can add comments to your HTML source by using the following syntax:

image.png

👉 Hide Content

  • Comments can be used to hide content.
  • This can be helpful if you hide content temporarily:

👉 Example➖ image.png

👉 Hide Inline Content

  • Comments can be used to hide parts in the middle of the HTML code.

👉 Example➖ image.png


image.png> Download our HTML & CSS Visual Treat! ebook Here: Click here