Sunday, April 3, 2011

Comments in HTML

Often we come across situation while writing blogs where we need to add comments. Many times you just need to add the snippets from other different sites in the same template you created. But the confusion comes that how do i distinguish between codes if i refer in future and need to change / add or remove something.

Answer to this is simply adding comments in the HTML code that you add. Next question that comes is how to do this. This is pretty simple, you just need to add a comment link with open tag as <!--  and close tag as -->. Anything writen between this would be considered as comments.

For example: <!-- Code for google analytics -->
The above comment line gives me an information that i had added the code for google analytics.
Just add the above line and write your own comments, the way you can understand in furture.

No comments: