HTML comments are fairly simple to include in your document, as they have a simple format. A comment in your document might resemble the following:
<!– This is a comment –>
Anything after < !– until the closing –> will not be displayed. It can still be seen in the source code for the document, but it is not shown onscreen.
Larger comments can make use of CDATA structures — structures created for other markup specifications but enabled in most user agents for XML, as well as HTML (XHTML), rendering.Hence, CDATA is used often for commenting large sections of code in HTML documents.The format of the CDATA tagisasfollows:
<![CDATA[ Commented text goes here ]]>