Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
November 30, 2011 11:27 pm GMT

The Script Tag

I got a great question from reader Josh Kreis:

I've noticed that on a <script> tag, there are all kinds of variations that all seem to work cross-browser. What is necessary and what isn't?

<script>//some javascript here</script><script type="text/javascript">//some javascript here</script><script type="text/javascript" language="javascript">//some javascript here</script><script language="javascript">//some javascript here</script><script type="text/javascript">//<![CDATA[// some javascript here//]]></script>

This is the scoop as far as I understand it. If anyone…

The Script Tag is a post from CSS-Tricks


Original Link: http://css-tricks.com/15276-the-script-tag/

Share this article:    Share on Facebook
View Full Article

CSS Tricks

A Web Design Community curated by Chris Coyier

More About this Source Visit CSS Tricks