I have seen some people using the language attribute as well.
Take a look at this as a reference (Book of Speed): http://www.bookofspeed.com/chapter3.html
Typically in HTML5 you would do something like:
Some things to remember:
If you are going to specify another type other than
The above list is from: http://dev.w3.org/html5/spec-author-view/the-script-element.html#scriptingLanguages
Remember that you would not use the language attribute, only the type attribute.