HTML Comments | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

HTML Comments

Sorry!Guys am a kinda of a begginer and am having a problem in understanding what the HTML comments are and what do they do(function in the HTML file)

26th Apr 2020, 8:51 AM
Brainz
Brainz - avatar
2 Answers
+ 5
Generally comments are used to explain the role of that part in the code. It is used to give more clarity for the viewers what is actually happening there. comments are not read by compilers.
26th Apr 2020, 9:12 AM
Puthur Harthik
+ 1
They do nothing ,they are like any other comment you use in any Language out there ,for providing description of what is happening so others may pick up quick while going through your html file ,you should go through Html course or use Google as well
26th Apr 2020, 9:11 AM
Abhay
Abhay - avatar