ITSourceCode.com

We Exist to Provide 100% Free Source Code and Tutorials

Custom Search

10-HTML Comments

Comments are brief explanatory notes added to the code for you to know what the codes tells about.

 

A brief comment that describes the functionality of the method is a great asset to new developers. This is for the benefit of the one who examines the code.

 

Comments should  separate the implementation details [how the method does it] that describes the function of the method.

Syntax:

<!-- Opening Comment Tag
-- > Closing Comment Tag

Example:

<!--Note: This is my logo! --> 
<img class="alignnone size-medium wp-image-1132" src="http://itsourcecode.com/wp-content/uploads/2015/10/itsourcecode_logo-295x300.png" alt="itsourcecode_logo" width="295" height="300" />

Result:
itsourcecode_logo

Facebook Comments

Check Your Domain Ranking

Leave a Reply

Your email address will not be published. Required fields are marked *

ITSourceCode.com © 2016 Frontier Theme

Subscribe For Latest Updates

Signup for our newsletter and get notified when we publish new articles for free!