There are two types of comments in JSP :
HTML Comments : These comments are visible in the HTML source code.
Syntax for HTML comment : <!–Comment–>
.
JSP Comments : These comments are not visible in HTML source code. That is why they are also called hidden comments. For code-level debugging information, these are suitable options.
Syntax for JSP comment : <%–Comment–%>
.