Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Comment in Html page or web pages source code|How to insert comments in html

Comment Tag in Html page or website source code.

Comment Tags are  used to Insert Comments in the Html.Comments are not displayed on the web pages on the browser.But this can help the developer or programmer when the developer has to modify HTML source code.Comments are also helped while testing HTML page because you can comment out HTML lines of code, one at a time, to search for errors.

You can add Comments in your HTML source code by using the following syntax:



We use an exclamation mark in the opening tag but not in the close tag.

Example:


This is Paragraph




You can also use comment tag directly into other HTML tags without using additional comment tags.
Example:



Html Source code:



   
          Paragraph Tag
   


Heading1







Output here:-



















Important Note: The text or things within the Comment tags will not be display on web pages.

Comment Below!


This post first appeared on The Code Developer, please read the originial post: here

Share the post

Comment in Html page or web pages source code|How to insert comments in html

×

Subscribe to The Code Developer

Get updates delivered right to your inbox!

Thank you for your subscription

×