html tutorial - HTML – Comments - html5 - html code - html form
- The comment tag is used to insert the comments in source code. The browsers are not displaying the comments.
- To explain the code we can use comments tag.
- If we have a lot of coding lines the comment tag is used.
Syntax for comments in HTML
Sample coding for comment tag:
Code Explanation for comment tag:
- The comment is highlighted and it is hidden. The comment tag is not displayed in the Browser.
Tips and notes:
- If you hide the scripts from browsers without support for scripts using the comment tag.
- The comment tag is used for large code program.