+ 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

13th Feb 2017, 6:07 AM
Shreekant Gosavi
Shreekant Gosavi - avatar
8 ответов
+ 6
why should he post a code for you to understand comments? -_-
13th Feb 2017, 6:45 AM
Kamil
Kamil - avatar
+ 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.
13th Feb 2017, 6:17 AM
ChaoticDawg
ChaoticDawg - avatar
+ 2
can you post a code for this to understand Mr. Dawg
13th Feb 2017, 6:34 AM
Shreekant Gosavi
Shreekant Gosavi - avatar
+ 2
Example: <!-- TODO Add a contact form here to submit mail --> More info on comments: http://www.w3schools.com/html/html_comments.asp
13th Feb 2017, 7:31 AM
ChaoticDawg
ChaoticDawg - avatar
+ 2
so much thanks ChaoticDawg
13th Feb 2017, 11:24 AM
Shreekant Gosavi
Shreekant Gosavi - avatar
+ 1
It's same as asking when indenting code doesn't have any effect on output then why should we indent it (python excluded).
13th Feb 2017, 7:56 AM
Varun Moghe
Varun Moghe - avatar
+ 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.
13th Feb 2017, 8:11 AM
Scarlet Red
Scarlet Red - avatar
+ 1
So that you know what is happening
8th Jul 2017, 1:30 PM
Geoff Rodriguez