HTML Comments

An HTML comment starts with <!-- and ends with -->.
Everything inside is ignored by the browser.

Why Use Comments?

In HTML, comments are notes or explanations you add inside your code that are not shown on the webpage. They’re useful for:

💬 **Syntax:** A comment begins with **<!--** and ends with **-->**.

Basic Comment Example:

<p>This is visible text.</p>
<!-- This is a comment and won’t appear on the page -->
<p>This is also visible text.</p>

Multi-Lined Comment Example:

<!--
This is a multi-line comment.
You can write as much documentation as you need here.
-->

Disabling Code:

You can temporarily disable parts of your HTML by wrapping them in comments — a great way to test or debug layouts without deleting code.

<!--
<h1>This heading is hidden</h1>
<p>This paragraph is also commented out.</p>
-->

Key Points & Warnings: