0

Why we use comment in html if the browser does not diplay it?

11th Jul 2018, 8:26 AM
Harshit Toppo
Harshit Toppo - avatar
5 Answers
+ 3
Comments help someone who is reading the code to understand it. Maybe you are doing teamwork, and a friend needs to understand what your code means. Or maybe you don't work on your code for a long time, the comments will help you remember.
11th Jul 2018, 8:33 AM
James
James - avatar
0
thank you
11th Jul 2018, 8:35 AM
Harshit Toppo
Harshit Toppo - avatar
0
Harshit Toppo commenting in any scripting or programming language is use to document the code, NOT for browsers but for the CODERS. Or u mean informing the user that his browser doesnt support some features for the browser to display properly ❓
11th Jul 2018, 8:39 AM
Nura Programmer
Nura Programmer - avatar