|Home | Web Design Tutorials | Free Graphics | Newsletter | Products | Specials | SEO | Sound Effects | Member Perks | Member Login|
Um . . . not quite.
XML compliant browsers, which is most any current version browser, are supposed to ignore content within comment tags. Here's the text from the official W3C specs on Embedded Style Sheets and Scripts (section C.4):
Note that XML parsers are permitted to silently remove the contents of comments. Therefore, the historical practice of "hiding" scripts and style sheets within "comments" to make the documents backward compatible is likely to not work as expected in XML-based user agents.I've used that trick on my sites in the past, but no more. There is only a very small percentage of old browsers still in use that wouldn't be compatible nowadays, so the trick is not really needed anymore.
The choice between being backward compatible for first and second generation browsers or being forward compatible with current and future browsers seems obvious to me. Since the number of incompatible browsers in use is next to nothing nowadays, I suggest we move forward.
This concludes the
Check out SEO for YOU now!
Almost a NewsletterSubscribe today for exclusive website design tutorials and grab some free gifts to boot! Learn more, or subcribe below:
Did you know...The member's site has about 100 standards compliant HTML and CSS tutorials, 31 handy reference charts, reprintable content, web graphics, exclusive fonts, free software, free ebooks and more? All this for less than 9 cents a day! [ Details ]
Home | Web Design Tutorials | Free Graphics | Newsletter | Products | Specials | SEO | Sound Effects