in the beginning, around 1987, it is this:
Then, around maybe year 2000, the standard body W3C says it should be this:
Then, around 2006-04, the standard body W3C says it should be this:
Then, around 2010, HTML5, the standard body, now WHATWG running the show, says it should be just:
History: HTML Script Tag Survey, Year 2006
the following is written around 2006.
In practice, you'll see
Of existing code on the web, you will also see:
Later on, standard bodies invented the
type= and made it a required attribute.
However, as of 2005-08, major websites do not clearly show any of them
winning the popularity contest:
- amazon.com uses both
language=and sometimes just the
- apple.com uses just the
- yahoo.com uses just the
- orkut.com uses just the
- msn.com sometimes uses both, sometimes one or the other.
- ebay.com sometimes uses both, sometimes one or the other.
- google.com simply uses just
For all practical purposes, one can just use
and it doesn't make any difference. If you want your code to conform to w3c standard, use
. This is recommended in RFC4329 (published in 2006-04), which also declares