RooZ Posted December 15, 2007 Share Posted December 15, 2007 I've been designing web sites for years, but I've never worked out why after <script> tags some people add <!-- and before </script> they add //--> I always thought of it as just compatibility with old browsers, because you don't see it as much these days, but still, I'm wondering what the actual use for it is. Link to comment https://forums.phpfreaks.com/topic/81786-just-a-general-question/ Share on other sites More sharing options...
dsaba Posted December 15, 2007 Share Posted December 15, 2007 are you referring to html comments? <!-- html comment --> Link to comment https://forums.phpfreaks.com/topic/81786-just-a-general-question/#findComment-415544 Share on other sites More sharing options...
phpQuestioner Posted December 15, 2007 Share Posted December 15, 2007 I always thought of it as just compatibility with old browsers the author comments tag hides the script from browser that are not javascript enabled. http://www.mcli.dist.maricopa.edu/show/interact/js_b.html Link to comment https://forums.phpfreaks.com/topic/81786-just-a-general-question/#findComment-415776 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.