+ 1
What is the use of comments in html.
In html the comments are not shown on the output and they also did make any changes to the output but whenever I html code by and programmer it always use comment in his/her html code.
5 Respuestas
+ 13
They are supposed to help you understand the code...
+ 4
You write today your code.
You upload it on the Web.
Some months later you have to make a change.
Or your company gives it to another developer to make the change.
By writing comments it will be very easy.
Otherwise you will lose time. Which is equal to money.
+ 3
for the better understanding for you and for the others .....
+ 1
It also helps others understand whats what if they need to work on your code.
+ 1
it makes the code user friendly