+ 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>

3rd Jul 2018, 11:28 AM
Yimer Indris
Yimer Indris - avatar
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>
3rd Jul 2018, 11:34 AM
Agent
Agent - avatar
+ 2
tnx Agent nice expression.
3rd Jul 2018, 11:43 AM
Yimer Indris
Yimer Indris - avatar