+ 2
what is uses of this code in javascript. language="javascript" type="text/javascript"
what is inportant of addin this code language="javascript" type="text/javascript" in JS. Example <script language="javascript" type="text/javascript"> </script>
2 Answers
+ 3
<script language="javascript">
was used in very old browsers, and is deprecated.
<script type="text/javascript">
is the HTML 4 standard.
In HTML 5, the type parameter is optional (JavaScript is the default), so you can just do <script>.
So for html5 you just need <script>
+ 2
tnx Agent nice expression.