Example of HTML comments - HTML CSS HTML

HTML CSS examples for HTML:Comments

Description

Example of HTML comments

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html lang="en">
 <head> 
  <title>Example of HTML comments</title> 
 </head> <!--from  ww w. j  av  a  2 s . c  o m-->
 <body> 
  <!-- this is an HTML comment --> 
  <!-- Comments are not displayed,
        by the browser --> 
  <h1>This is a heading</h1> 
  <p>This is a paragraph.</p>   
  <!-- this is an HTML comment --> 
  <!-- Comments are not displayed,
        by the browser --> 
  <h1>This is a heading</h1> 
  <p>This is a paragraph.</p>   

 </body>
</html>

Related Tutorials