HTML comments help organize your code and are ignored by the browser when rendering the page.
<!-- This is a single-line comment -->
<!-- This is a multi-line comment. It can span over multiple lines. Useful for writing long explanations. -->
<!-- TODO: Add navigation menu here later --> <!-- NOTE: This section will be visible to admin only --> <!-- FIXME: This needs to be fixed for small screens -->
<!--[if IE]> <p>This is Internet Explorer specific content</p> <![endif]-->
<!-- Start: Sidebar -->
<div class="sidebar">
<p>Sidebar content</p>
</div>
<!-- End: Sidebar -->
<!-- <!-- Invalid --> -->
Ctrl + /Cmd + /<!-- --> tags.<html> <body> <!-- Welcome message for AIT website --> <p>Welcome to the Academy of Information Technology (AIT).</p> <!-- Course details section --> <p>We offer web development, programming, and IT certifications.</p> </body> </html>
Welcome to the Academy of Information Technology (AIT).
We offer web development, programming, and IT certifications.
<!-- --> are completely ignored by browsers and only visible inside source code for reference.
<!-- and --> to hide them.<html> <body> <p>Welcome to the Academy of Information Technology (AIT).</p> <!-- <p>Here is a photo of our campus:</p> <img src="ait_campus.jpg" alt="AIT Campus"> --> <p>Explore our courses and join the next batch.</p> </body> </html>
Welcome to the Academy of Information Technology (AIT).
Explore our courses and join the next batch.