The comments at HTML are used to explain what is being done with the code of our programs or web pages. Although we are not very prone to using this type of artifact, they become especially helpful when we find ourselves in environments where there are many programmers working on the same development.
In fact, a good code would be one that has at least 80% of its lines of code commented.
In HTML we can put comments in the following way:
This comment on HTML does not have to be a single line. We could have the comment at HTML distributed in several lines. Of course, as long as it began and ended with the characters that delimit it. We would have the following:
Perhaps the only drawback that can be given to the comments on HTML is that they substantially increase the weight of the page. More so if we are around the 80% that we have counted previously. Which will affect the loading time of the page in the browser.
This is why it is highly recommended to have the files HTML source, where we have both the code HTML such as comments and files that are uploaded to the servers. These without comments. This procedure will substantially improve the loading time of the pages.
