About Lesson
Definition:
HTML comments are used to add notes or remarks within the HTML code that are not displayed in the browser when the page is rendered. They are primarily used for documenting the code, providing explanations, or temporarily removing sections of code without deleting them.
Syntax:
<!-- This is a comment -->
Example:
HTML
<!DOCTYPE html>
<html>
<body>
<!--This is Html Headings-->
<h1>This is heading 1</h1>
<h2>This is heading 2</h2>
<h3>This is heading 3</h3>
<h4>This is heading 4</h4>
<h5>This is heading 5</h5>
<h6>This is heading 6</h6>
</body>
</html>