HTML comment

Comments in an HTML document are used to provide explanations or notes about the code, and they are not displayed in the final rendered page. They are a useful way to leave notes for yourself or for other developers who may be working on the same codebase.

To add a comment to an HTML document, you can use the <!-- and --> tags. Anything between these tags will be treated as a comment and will not be displayed on the final rendered page.

Here is an example of how to use the comment in an HTML document


<!-- This is a comment. It will not be displayed in the final rendered page. -->