0
What is the use of comments in htm?
it is not shown in the output also if wrute a comment with open and clsie tag<--!xxxx-->
4 odpowiedzi
+ 2
<!-- this is a comment in HTML --> anything within those parameter will not be excuted or taken in.
+ 1
in HTML <!--comment-->
in CSS /*comment*/
in JavaScript //comment or /*comment*/
+ 1
Comments are not displayed in the browser but you can use comments to explain your code, which can help you when you edit the source code at later date. This is especially useful when you have a lot of code.
0
these are comments tag ...anything u write in between them will not be displayed in the output section. Programmer use this for making a note that is whats being done here ... it works same as C or C++ comments