HTML Comment Tags

Comment is a piece of code which is ignored by any web browser. Comments are not displayed by the browser, but they can help document your HTML source code. Your HTML source by using the following syntax.


<!– This is a comment –>

<p>This is a paragraph.</p>

Conditional Comments

You might stumble upon conditional comments in HTML: Conditional comments defines some HTML tags to be executed by Internet Explorer only.


<!–[if IE 9]>

…. some HTML here ….