• Comments in HTML are used to add notes or explanations that are not displayed on the webpage.
• Comments are helpful for developers to document their code, provide reminders, or temporarily disable certain sections.
• To create a comment, use the <!-- to start the comment and --> to end it.
• Anything written between <!-- and --> is considered a comment and is ignored by the browser when rendering the page.
• Comments are useful for collaboration, troubleshooting, or making code more understandable for others who may work with it.
<!DOCTYPE html>
<html>
<head>
<title>Comments</title>
</head>
<body>
<h1>Welcome to JTC</h1>
<div>
<p>Html Comment example</p>
<!-- This is First Div -->
</div>
</body>
</html>