Module: M2-R5: Web Design & Publishing
Chapter: Ch1 Computer Intro
HTML comments are used to add notes or explanations within the code that do not appear on the web page. They are helpful for developers to understand the code or temporarily disable sections.
<!-- This is a comment -->
Example 1: Simple Comment
<!-- This paragraph is for main content -->
Example 2: Disable Code Temporarily
<!-- <p>This paragraph is hidden</p> -->
Example 3: Multi-line Comment
<!--
This is a multi-line comment
Useful for detailed explanations
-->