[Pro] Commenting HTML and/or CSS?

I just discovered that commenting syntax varies depending on the type of HTML document you’ve specified. I was trying to use this syntax for an HMTL Strict web page:

<<- Comment goes here ->>
*/ Comment goes here */

But apparently, this is what you’re supposed to use:

I find this all very confusing. Does anyone have a link to a site that shows the correct comment syntax for every variation of HTML? Also, is CSS commenting syntax different from HTML commenting?


offtopic mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Oops! I had my syntax wrong. It should have been:

This is how I’ve always done it:

<!-- HTML Comment -->
/* CSS Comment */
# Apache (.htaccess) Comment Line
// Javascript Comment Line
/* Javascript Comment Block */

offtopic mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Oh, and <!-- HTML Comment --> is proper for XHTML, too


offtopic mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options