How To Add Comment HTML?

How To Add Comment HTML?


HTML Comments


In HTML, you can add comments using the <!-- and --> tags. Comments in HTML are ignored by the browser and are meant for adding notes or explanations within the code. Here's how you add a comment in HTML:


<!DOCTYPE html>
<html>
<head>
    <title>My Web Page</title>
</head>
<body>
    <h1>Hello, World!</h1>
    <!-- This is a comment -->
    <p>This is a paragraph.</p>
</body>
</html>
    

One Short Key For Comment Control + /


Post a Comment

Previous Next

نموذج الاتصال