View Full Version : Comments in CSS and HTML

03-15-2006, 11:49 AM
Comments in CSS look like this:

/* header image float */
even if this line is in between <script> and </script> in HTML.

Comments in HTML look like this:

even if this line is in between <head> and </head> but not between <script> and </script> in HTML.

Is this correct?

I am having trouble with some HTML, apparently because I added comments to both the <head> and <script> parts. I am going to try it without the comments.

03-15-2006, 04:10 PM
You are correct, that's the right way to use comment sin both languages.
But remember that you might want to escape some characters when having one language (php for example) write out code for another language (html for example)