+ 2
In html, as the browser does not display comments then why should we use the comment tag?
What is use of comment tag in HTML
8 Réponses
+ 6
why should he post a code for you to understand comments? -_-
+ 5
It's for your own needs. Reminders, readability, TODO list, organization, etc.
Also often use for debugging so you can comment out your code and see where a problem may be.
+ 2
can you post a code for this to understand Mr. Dawg
+ 2
Example:
<!-- TODO Add a contact form here to submit mail -->
More info on comments:
http://www.w3schools.com/html/html_comments.asp
+ 2
so much thanks ChaoticDawg
+ 1
It's same as asking when indenting code doesn't have any effect on output then why should we indent it (python excluded).
+ 1
Well, if you forget easily then it is for your own sake. If you collaborate with people you can write comments in for other people to read and understand. I don't collab nor forget easily... so comments are useless for me.
+ 1
So that you know what is happening