Html-tutorial - How to comment html code, Comments tag
How to comment html codeHTML Comment Tag:
The HTML 'comments' tag is used for creating comments within your HTML code. Comments will not be displayed on the browser. The comments tag is for the programmers benefit. The programmers use this comment tag to explain the code what they does, so that the code can be understand by other developers or programmers. When the code grows too big it is difficult to understand the code by the developer itself. So it is better to explain your code as and then when you write your code.
You can simply comment your html code by using this comment tag.
<!-- Add your comment here, The browser will not display your comment -->
<!--img src="http://info.w3calculator.com/free-image/sir-isaac-newton.jpg" alt="newton-image" -->
The above code will not display the image of sir isaac newton. If you remove the comment it will print the image of sir-isaac-newton
<img src="http://info.w3calculator.com/free-image/sir-isaac-newton.jpg" alt="newton-image">
The topic on Html-tutorial - How to comment html code is posted by - Patel
Hope you have enjoyed, Html-tutorial - How to comment html codeThanks for your time