HTML Comments

HTML Comment Tags

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

Html comments.JPG

Note: Comments are not displayed by the browser, but they can help document your HTML source code.

Comments are also great for debugging HTML, because you can comment out HTML lines of code, one at a time, to search for errors:

Example;                                                                              Tryit your self

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s