Comments in HTML:

In HTML comment tag is available to comment single line or multiple line.The “<!- – “ is start tag and “- – > “ is closeing tag. Comment written between these tags is ignored by all browsers. Means the comment will not be display on web page. Comment is very useful to debug the HTML page. You can also use comment tag to write notes in HTML page which should not display on web page.


Following example for single line comment:


Following example for multiple line comment:


Following example for giving comment to a tag :


You can comment any thing like tags, elements, css, etc.


2 responses to “Comments in HTML”

  1. Daniel says:

    My brother recommended I may like this blog. He used to be entirely
    right. This post truly made my day. You cann’t believe just how so much time I had spent for this info!
    Thank you!

  2. Jack Smith says:

    Thanks on your marvelous posting! I genuinely enjoyed reading it, you are
    a great author.I will remember to bookmark your blog and
    will often come back in the future. I want to encourage
    that you continue your great work, have a nice weekend!

Leave a Reply

Your email address will not be published. Required fields are marked *