+ 3
Why the language attribute is deprecated, and should not be used in Java script?
4 Respuestas
+ 5
If you're talking about the 'language' html attribute of the <script> tag, the reason is:
<< Like the type attribute, this attribute identifies the scripting language in use. Unlike the type attribute, however, this attribute’s possible values were never standardized. The type attribute should be used instead. >>
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script
+ 3
@Bill Zelenko wrote: << In HTML5 do not use the type="text/javascript" >>
In Html5 you can still use the 'type' attribute of the <script> tag, but it's no more mandatory ( as JS is actually still the only script language, last html specifications have decided to have "text/javascript" as default value for 'type' attribute if not specified ;) )
+ 2
In HTML5 do not use the type="text/javascript"
+ 2
never be sorry for asking... mistakes are deep by those who assume or choose to not ask and can cost companies thousands.