Producing web pages
* HTML CSS DHTML XHTML A to Z of tags        Accessibility          Design

Adding comments to a page

If you want to put notes or comment in an HTML page, use the comment tag. For example:

<!—Page updated 04/11/2000 by AG. 
Added a new link to page.html -->

This is an odd tag. You need an exclamation mark after the opening bracket but not before the closing bracket. There is no end tag; the comment tag is an empty tag.

Any text that you type in the comment tag doesn’t show up in the browser window. My example uses a comment to explain who last updated the page and why.

You can put comments anywhere you like in a page but don’t put any HTML tags in a comment tag. The browser will probably fall in a heap