in html 4.0 and xhtml the language attribute is obsolete and been replaced
with the type attribute which specifies the language and the encoding (mime
content type). in an html 4.0 compliant browser (which IE isn't) it will
override the any specfieid language attribute.
so if you want to be html 4.0 or xhtml compliant and support non complaint
browers you should specify both.
-- bruce (sqlwork.com)
"Mike Rand" <Mi******@discussions.microsoft.com> wrote in message
news:34**********************************@microsof t.com...
Hi,
I am trying to find "clear" definitions of the "type" attribute in the
<script> element.
<script language="javascript" type="text/C#">
Specifically, I am trying to find out:
1) Why it is necessary to specify a "type"? (it seems redundant to
"language").
2) Why am I able to specify a type that I can't specify in the language
(see
above).
3) Is it possible to write client side script in C#?
Thanks,
- Mike