Html Comment


Prev Tutorial Next Tutorial

Html Comment

Comment is nothing but it is a statement which is not display on browser window. It is useful to understand the which code is written for what purpose. Comment tags <!-- and --> are use for comment on html page.

Syntax

<!--  Html comment -->
 

Example

 <html>
 <body>
<!--  Html page -->
 <p>This is simple html page<p>
 <p>Html is simple and easy to learn<p>
</body>
</html>

Result

This is simple html page

Html is simple and easy to learn

In above example comments are not display on browser

Multiline Comment

Comment may be single line or multiline, syntax for multiline comment is given below.

Syntax

<!--  
Html Multi 
Line Comment 
-->

Example

 <html>
 <body>
<!--  
Html page 
Start from here 
-->
 <p>This is simple html page<p>
 <p>Html is simple and easy to learn<p>
</body>
</html>

Result

This is simple html page

Html is simple and easy to learn


Prev Tutorial Next Tutorial

Google Advertisements
Download Projects

Google Adsense Advertisements

Buy 3 Year Old Domain, Tutorialday.com, SeosmoTools.com @$200

Buy This Ad Space @$50 per Month, Ad Size 300X250 Contact on: hitesh.xc@gmail.com WhatsApp no. 8882538826

Yahoo Advertisements