Html5 Comment

Advertisements

Prev Tutorial Next Tutorial

Html5 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 html5 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 Advertisment

Buy This Ad Space @$20 per Month, Ad Size 600X200 Contact on: hitesh.xc@gmail.com or 9999595223

Magenet is best Adsense Alternative here we earn $2 for single link, Here we get links ads. Magenet

For Projects 9999595223

Google Advertisements


Buy Websites 9999595223

Buy College Projects with Documentation Contact on whatsapp 9999595223. Contact on: hitesh.xc@gmail.com or 9999595223 Try this Keyword C++ Programs

Advertisements