HTML Comments

0

HTML Comments

HTML comments are used to write notes in the code that don't appear on the webpage. They're helpful for explaining the code or leaving reminders.

Syntax:

<!-- Comment goes here -->

Example

<!-- Name of my son -->
<p>Md. Habibur Rahman</p>

Try It Yourself

Notes:

Comments are wrapped in <!-- and -->.

Comments are not visible on the page when viewed in a browser.

They are useful for explaining sections of code or temporarily disabling code.

Tags

Post a Comment

0Comments
Post a Comment (0)