0
why we use this element in html? what is the purpose?? <!-- comments -->
3 Answers
+ 5
For comment in your code. Suppose you have written a heavy code(large code) in html. You cannot remember everything you comment for remember what is the purpose of this line. Again if you work in an company, you have write their front end of website only html. A new guy/girl get the same job and how do he know what is the purpose of that line.
+ 1
the code between <!-- and --> is not read by the computer, those tags are used to add comments for when other people read your code
+ 1
to add notes for yourself or other developer about your markup without disturbing (not being visible) in your webpage on browser.