wwwSchools
PREV: The HTML element structure

4. HTML comments

NEXT: HTML structure


1. How to make a HTML comment?
ANS:- To make a HTML comment, we simply add '<!-- YOUR comment GOES here -->'.
Starting with '<!--' and ending with '-->'.


2. Why are HTML comments useful?
ANS:- Generally, HTML comments are for you or other developers who might be looking at the source code. Their purpose is to help the author of the code and other developers understand it better. Using HTML comments, you can explain your choices to a colleague reviewing your code or even debug a program quicker.