Thursday, 2 June 2011

How to insert comments in HTML Document


Comments are non-executable statements. The comment tag is used to insert a comment in the HTML source code. The browser will ignore a comment. You can use comments to explain your code, which can help you when you edit the source code at a later date. We can use two methods to insert comments in html. They are
1.                  <! -- This is a comment -->
2.                  <Comment> your comment here</comment>

No comments:

Post a Comment