Purpose of comments in HTML.

Q12. What is the purpose of commenting text in the HTML code?

Ans.  A comment tag is a code that is put into the HTML code to hide your text in the Web page. The data that appears within the start and end tags of the comment tag will not be executed by the Web browser. In this way, you can place little notes to remind yourself what pieces of code are doing what. You can store code-specific information inside comments. Comments are not visible to the user when the program is executed, but they are still available in the program.

%d bloggers like this: