Example : HTML Comment.
<html> <head> <title> Html Comment Examples </title> </head> <body> <!-- Now we are using heading tags and this is html comment--> <h1> Heading h1 </h1> <h2> Heading h2 </h2> <h3> Heading h3 </h3> <h4> Heading h4 </h4> <h5> Heading h5 </h5> <h6> Heading h6 </h6> </body> </html>
Output :
Example : CSS Comment.
<html> <head> <title> CSS Comment Examples </title> /* for <p> Tag style */ p { text-align:left color:red; /* Font Color is red */ font-family:verdana; font-size:20px; /* Font size is 20 pixels */ } </head> <body> <p> Your Paragraph Write Here </p> </body> </html>
Example : Java Script Comment.
<html> <head> <title> Java Script Comment Examples </title> <script type="text/javascript"> // Use for Single line comment. document.write("<h1>This is a heading h2</h1>"); /* This is use for multiple line comment. */ document.write("<h1>This is a heading h1 </h1>"); </script> </head> <body> <h1> Heading h1 </h1> <h2> Heading h1 </h2> </body> </html>
My name is Mukesh Jakhar and I am a Web Application Developer and Software Developer, currently living in Jaipur, India. I have a Master of Computer Application in Computer Science from JNU Jaipur University. I loves to write on technology and programming topics. Apart from this, I love to travel and enjoy the beauty of nature.