10-HTML Comments

0
299

This tutorial is all about 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
(Visited 15 times, 1 visits today)

LEAVE A REPLY

Please enter your comment!
Please enter your name here