Saturday, 14 March 2015

HTML Comments

Comment tags <!-- and --> are used to insert comments in HTML.

HTML Comment Tags

You can add comments to your HTML source by using the following syntax:

<!-- Write your comments here -->

Comments are not displayed by the browser, but they can help document your HTML.
With comments you can place notifications and reminders in your HTML:

<!-- This is a comment -->

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

<!-- Remember to add more information here -->
 

Conditional Comments

You might stumble upon conditional comments in HTML:

<!--[if IE 8]>
    .... some HTML here ....
<![endif]-->

 

 

No comments:

Post a Comment